And should use the correct variable.
llvm-svn: 97193
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
index bdb1c52..c3cbd62 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
@@ -758,7 +758,7 @@
if (OffsetSize != TTypeBaseOffsetSize) {
assert((int)OffsetSize - (int)TTypeBaseOffsetSize);
TTypeBaseOverflow = OffsetSize - TTypeBaseOffsetSize;
- assert(SizeAlign >= TTypeBaseOffsetSize);
+ assert(SizeAlign >= TTypeBaseOverflow);
SizeAlign -= TTypeBaseOverflow;
}