aboutsummaryrefslogtreecommitdiff
path: root/lib/MC
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
commitfa2b25c57300dc9c518ea35bbc9dc8658fdbf454 (patch)
tree16116967af0fe8909e1d59ee3f12225c632e0d79 /lib/MC
parent3f1f9c37986953250cbda7a7bfb7123571449be7 (diff)
Relax this assert. It may not hold in all cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179814 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MCDwarf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCDwarf.cpp b/lib/MC/MCDwarf.cpp
index f8f508d972..f91cb54e63 100644
--- a/lib/MC/MCDwarf.cpp
+++ b/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.