Skip to content

Commit 9b40efa

Browse files
committed
Fix ICE for --emit llvm-ir
1 parent 80d93e8 commit 9b40efa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/base.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,9 @@ fn codegen_stmt<'tcx>(
507507
_ => {
508508
if fx.clif_comments.enabled() {
509509
let inst = fx.bcx.func.layout.last_inst(cur_block).unwrap();
510-
fx.add_comment(inst, format!("{:?}", stmt));
510+
with_no_trimmed_paths!({
511+
fx.add_comment(inst, format!("{:?}", stmt));
512+
});
511513
}
512514
}
513515
}

0 commit comments

Comments
 (0)