diff --git a/lib/MC/MCStreamer.cpp b/lib/MC/MCStreamer.cpp index c16670ad7ca..c2a20f9ca6a 100644 --- a/lib/MC/MCStreamer.cpp +++ b/lib/MC/MCStreamer.cpp @@ -74,11 +74,10 @@ raw_ostream &MCStreamer::GetCommentOS() { } void MCStreamer::generateCompactUnwindEncodings(MCAsmBackend *MAB) { - if (!MAB) return; for (std::vector::iterator I = FrameInfos.begin(), E = FrameInfos.end(); I != E; ++I) I->CompactUnwindEncoding = - MAB->generateCompactUnwindEncoding(I->Instructions); + (MAB ? MAB->generateCompactUnwindEncoding(I->Instructions) : 0); } void MCStreamer::EmitDwarfSetLineAddr(int64_t LineDelta,