[llvm-commits] [llvm] r144138 - /llvm/trunk/lib/MC/MCDwarf.cpp

Bill Wendling isanbard at gmail.com
Tue Nov 8 14:23:44 PST 2011


Author: void
Date: Tue Nov  8 16:23:43 2011
New Revision: 144138

URL: http://llvm.org/viewvc/llvm-project?rev=144138&view=rev
Log:
Emit the compact unwind *if* we have a compact unwind encoding.
*headdesk*

Modified:
    llvm/trunk/lib/MC/MCDwarf.cpp

Modified: llvm/trunk/lib/MC/MCDwarf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDwarf.cpp?rev=144138&r1=144137&r2=144138&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCDwarf.cpp (original)
+++ llvm/trunk/lib/MC/MCDwarf.cpp Tue Nov  8 16:23:43 2011
@@ -1020,7 +1020,7 @@
   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);
     }
 





More information about the llvm-commits mailing list