diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-03-27 10:56:15 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-03-27 10:56:15 +0000 |
| commit | 9b40efa24e284a8038a28b4695c1274e55e3440d (patch) | |
| tree | 6a4b59530236bc3f981117fb185b40fc1d8eef73 | |
| parent | 80d93e8a667e0ec95dcab52b88d1c6f62c5efb4a (diff) | |
| download | rust-9b40efa24e284a8038a28b4695c1274e55e3440d.tar.gz rust-9b40efa24e284a8038a28b4695c1274e55e3440d.zip | |
Fix ICE for --emit llvm-ir
| -rw-r--r-- | src/base.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/base.rs b/src/base.rs index 63c499d4855..0d43e20f1c1 100644 --- a/src/base.rs +++ b/src/base.rs @@ -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)); + }); } } } |
