While hunting down a bug in the llvm optimizer on darwin x86_64:
bugpoint -run-llc-ia vm.bc -Xlinker liball.a -Xlinker -lpthread -Xlinker -ldl -
Xlinker -lobjc -output=good.txt
Read input file : 'vm.bc'
*** All input ok
Initializing execution environment: Found gcc: /usr/bin/gcc
Running the code generator to test for a crash: <llc-ia>
*** Checking the code generator...
<llc-ia><gcc><program>Abort trap*** Debugging code generator crash!
Checking to see if we can delete global inits: Assertion failed: (BA-
>getFunction() == BA->getBasicBlock()->getParent() && "Malformed
blockaddress"), function WriteConstants, file /Users/kuehnel/Downloads/llvm-
latest/lib/Bitcode/Writer/BitcodeWriter.cpp, line 869.
Stack dump:
0. Program arguments: bugpoint -run-llc-ia vm.bc -Xlinker liball.a -Xlinker -
lpthread -Xlinker -ldl -Xlinker -lobjc -output=good.txt
Illegal instruction
vm.bc
(344592 bytes, application/octet-stream)