aboutsummaryrefslogtreecommitdiff
path: root/lib/MC
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-04-18 22:56:05 +0000
committerBill Wendling <isanbard@gmail.com>2013-04-18 22:56:05 +0000
commit18014d4e4c6722aec4fa387d995b618f5d3111cd (patch)
tree4bc5a66cc3bf3aafbea689d35ac298d5df163318 /lib/MC
parent2828608e8e1432e8bdc9ec704c8db118b7386c19 (diff)
Assert if we're trying to generate a null compact unwind entry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179809 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MCDwarf.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/MC/MCDwarf.cpp b/lib/MC/MCDwarf.cpp
index 1dff71a495..f8f508d972 100644
--- a/lib/MC/MCDwarf.cpp
+++ b/lib/MC/MCDwarf.cpp
@@ -1170,8 +1170,7 @@ void FrameEmitterImpl::EmitCompactUnwind(MCStreamer &Streamer,
// .quad except_tab1
uint32_t Encoding = Frame.CompactUnwindEncoding;
- if (!Encoding) return;
-
+ assert(Encoding && "There should never be a null compact unwind encoding!");
bool DwarfEHFrameOnly = (Encoding == MOFI->getCompactUnwindDwarfEHFrameOnly());
// The encoding needs to know we have an LSDA.
@@ -1486,8 +1485,7 @@ void MCDwarfFrameEmitter::Emit(MCStreamer &Streamer,
if (IsEH && MOFI->getCompactUnwindSection())
for (unsigned i = 0, n = Streamer.getNumFrameInfos(); i < n; ++i) {
const MCDwarfFrameInfo &Frame = Streamer.getFrameInfo(i);
- if (Frame.CompactUnwindEncoding)
- Emitter.EmitCompactUnwind(Streamer, Frame);
+ Emitter.EmitCompactUnwind(Streamer, Frame);
}
const MCSection &Section = IsEH ? *MOFI->getEHFrameSection() :