Fix ICE for --emit llvm-ir

This commit is contained in:
bjorn3 2023-03-27 10:56:15 +00:00
parent 80d93e8a66
commit 9b40efa24e

View File

@ -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));
});
}
}
}