about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/alloc_example.rs
diff options
context:
space:
mode:
authorLuqman Aden <me@luqman.ca>2022-04-09 15:25:46 -0400
committerLuqman Aden <me@luqman.ca>2022-04-09 15:25:46 -0400
commitbf3ef0da0c630ab239e4f26e86602eabe585e74f (patch)
tree659834049ae9c41b5ca57e1777e198c31913a5c7 /compiler/rustc_codegen_gcc/example/alloc_example.rs
parente980c6295582792e4a7c2d67e33cece60c170115 (diff)
downloadrust-bf3ef0da0c630ab239e4f26e86602eabe585e74f.tar.gz
rust-bf3ef0da0c630ab239e4f26e86602eabe585e74f.zip
Switch to the 'normal' basic block for writing asm outputs if needed.
We may sometimes emit an `invoke` instead of a `call` for inline
assembly during the MIR -> LLVM IR lowering. But we failed to update
the IR builder's current basic block before writing the results to the
outputs. This would result in invalid IR because the basic block would
end in a `store` instruction, which isn't a valid terminator.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_example.rs')
0 files changed, 0 insertions, 0 deletions