mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-04-20 00:14:45 +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,
|
||||
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(())
|
||||
}
|
||||
|
|
|
@ -214,6 +214,7 @@ fn build_impl(is_debug: bool) -> Result<Workspace, DynError> {
|
|||
let workspace = Workspace::open(is_debug)?;
|
||||
let mut command = workspace.cargo_command();
|
||||
command.arg("build");
|
||||
command.arg("--locked");
|
||||
workspace
|
||||
.projects
|
||||
.iter()
|
||||
|
|
Loading…
Add table
Reference in a new issue