Emit the compact unwind *if* we have a compact unwind encoding.

*headdesk*

llvm-svn: 144138
This commit is contained in:
Bill Wendling 2011-11-08 22:23:43 +00:00
parent e4a38a73fd
commit 39674fc008
1 changed files with 1 additions and 1 deletions

View File

@ -1020,7 +1020,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)
if (Frame.CompactUnwindEncoding)
Emitter.EmitCompactUnwind(Streamer, Frame);
}