mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-01 22:56:06 +00:00

Previously, this unconditionally emitted text IR. I ran into a bug that manifested in broken disassembly, so the desired output was the bitcode format. If the input format was binary bitcode, the requested output file ends in .bc, or an explicit -output-bitcode option was used, emit bitcode.
7 lines
91 B
LLVM
7 lines
91 B
LLVM
|
|
define void @foo(ptr %ptr) {
|
|
store i32 0, ptr %ptr
|
|
store i32 1, ptr %ptr
|
|
ret void
|
|
}
|