mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-08-03 14:50:53 +00:00
Fix trap uinstruction codegen, don't fail build with old Rust versions
This commit is contained in:
parent
27c0e13677
commit
2000ca4c6a
2 changed files with 1 additions and 3 deletions
|
@ -1337,9 +1337,6 @@ fn emit_int_trap(ctx: &mut EmitContext) -> Result<(), TranslateError> {
|
||||||
0,
|
0,
|
||||||
LLVM_UNNAMED,
|
LLVM_UNNAMED,
|
||||||
);
|
);
|
||||||
// llvm.trap is not a terminator,
|
|
||||||
// LLVM might fail with an unterminated basic block if we don't insert unreachable
|
|
||||||
LLVMBuildUnreachable(builder);
|
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
@ -214,6 +214,7 @@ fn build_impl(is_debug: bool) -> Result<Workspace, DynError> {
|
||||||
let workspace = Workspace::open(is_debug)?;
|
let workspace = Workspace::open(is_debug)?;
|
||||||
let mut command = workspace.cargo_command();
|
let mut command = workspace.cargo_command();
|
||||||
command.arg("build");
|
command.arg("build");
|
||||||
|
command.arg("--locked");
|
||||||
workspace
|
workspace
|
||||||
.projects
|
.projects
|
||||||
.iter()
|
.iter()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue