From: Bill Wendling Date: Mon, 9 Sep 2013 21:22:44 +0000 (+0000) Subject: Set the encoding to '0' if we don't have an MAB. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1d5ad97531a0213f06cc526a0c8ea7b2150f6acc;p=oota-llvm.git Set the encoding to '0' if we don't have an MAB. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190354 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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,