Skip to content

Commit

Permalink
Fix ICE for --emit llvm-ir
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Mar 27, 2023
1 parent 80d93e8 commit 9b40efa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,9 @@ fn codegen_stmt<'tcx>(
_ => {
if fx.clif_comments.enabled() {
let inst = fx.bcx.func.layout.last_inst(cur_block).unwrap();
fx.add_comment(inst, format!("{:?}", stmt));
with_no_trimmed_paths!({
fx.add_comment(inst, format!("{:?}", stmt));
});
}
}
}
Expand Down

0 comments on commit 9b40efa

Please sign in to comment.