diff --git a/tools/llvm-objdump/llvm-objdump.cpp b/tools/llvm-objdump/llvm-objdump.cpp index c99e4b0e205..2fcd59fe2b2 100644 --- a/tools/llvm-objdump/llvm-objdump.cpp +++ b/tools/llvm-objdump/llvm-objdump.cpp @@ -405,6 +405,11 @@ public: raw_ostream &OS, StringRef Annot, MCSubtargetInfo const &STI) override { + if (!MI) { + OS << " "; + return; + } + SmallString<40> InstStr; raw_svector_ostream IS(InstStr);