Fix trap instruction codegen, don't fail build with older Rust versions (#229)
This commit is contained in:
parent
27c0e13677
commit
f0c905db15
|
@ -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…
Reference in a new issue