summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCDwarf.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-04-18 23:16:46 +0000
committerBill Wendling <isanbard@gmail.com>2013-04-18 23:16:46 +0000
commit99bce5fe086e43e320deff3475956db220ecbb00 (patch)
tree09a48c62bb79e40e2c53749f225e9c67d4f259fb /llvm/lib/MC/MCDwarf.cpp
parentf8fb2bc2f3f8157cadfd8ec2e3a5f19eec0828e3 (diff)
downloadbcm5719-llvm-99bce5fe086e43e320deff3475956db220ecbb00.tar.gz
bcm5719-llvm-99bce5fe086e43e320deff3475956db220ecbb00.zip
Relax this assert. It may not hold in all cases.
llvm-svn: 179814
Diffstat (limited to 'llvm/lib/MC/MCDwarf.cpp')
-rw-r--r--llvm/lib/MC/MCDwarf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp
index f8f508d972d..f91cb54e639 100644
--- a/llvm/lib/MC/MCDwarf.cpp
+++ b/llvm/lib/MC/MCDwarf.cpp
@@ -1170,7 +1170,7 @@ void FrameEmitterImpl::EmitCompactUnwind(MCStreamer &Streamer,
// .quad except_tab1
uint32_t Encoding = Frame.CompactUnwindEncoding;
- assert(Encoding && "There should never be a null compact unwind encoding!");
+ if (!Encoding) return;
bool DwarfEHFrameOnly = (Encoding == MOFI->getCompactUnwindDwarfEHFrameOnly());
// The encoding needs to know we have an LSDA.
OpenPOWER on IntegriCloud