llvm-project
b9ccc0ca - [llvm][SystemZ] Set comment stream in SystemZDisassembler::getInstruction (#148614)

Commit
148 days ago
[llvm][SystemZ] Set comment stream in SystemZDisassembler::getInstruction (#148614) This is done by other backends at the start of this function, for example AArch64Disassembler::getInstruction. Not setting it means you hit asserts in MCDisassembler::tryAddingSymbolicOperand and MCDisassembler::tryAddingPcLoadReferenceComment when there is a symbolizer set. Which happened to me while debugging a SystemZ program using LLDB. As the only good way to hit this path is from C++, I've copied X86's disassembler unit tests and added just enough to hit an assert if the comment stream is not set.
Author
Parents
Loading