Skip to content

Commit

Permalink
Fix trap instruction codegen, don't fail build with older Rust versio…
Browse files Browse the repository at this point in the history
…ns (#229)
  • Loading branch information
vosen authored May 8, 2024
1 parent 27c0e13 commit f0c905d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions ptx/src/emit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down
1 change: 1 addition & 0 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f0c905d

Please sign in to comment.