[llvm-commits] [llvm] r97192 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp

Bill Wendling isanbard at gmail.com
Thu Feb 25 16:22:42 PST 2010


Author: void
Date: Thu Feb 25 18:22:42 2010
New Revision: 97192

URL: http://llvm.org/viewvc/llvm-project?rev=97192&view=rev
Log:
Got assertion check backwards.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp?rev=97192&r1=97191&r2=97192&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp Thu Feb 25 18:22:42 2010
@@ -758,7 +758,7 @@
     if (OffsetSize != TTypeBaseOffsetSize) {
       assert((int)OffsetSize - (int)TTypeBaseOffsetSize);
       TTypeBaseOverflow = OffsetSize - TTypeBaseOffsetSize;
-      assert(TTypeBaseOffsetSize >= SizeAlign);
+      assert(SizeAlign >= TTypeBaseOffsetSize);
       SizeAlign -= TTypeBaseOverflow;
     }
 





More information about the llvm-commits mailing list