r233138 - Fix obviously broken assertion, NFC
Reid Kleckner
reid at kleckner.net
Tue Mar 24 16:46:25 PDT 2015
Author: rnk
Date: Tue Mar 24 18:46:25 2015
New Revision: 233138
URL: http://llvm.org/viewvc/llvm-project?rev=233138&view=rev
Log:
Fix obviously broken assertion, NFC
Modified:
cfe/trunk/lib/AST/RecordLayoutBuilder.cpp
Modified: cfe/trunk/lib/AST/RecordLayoutBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/RecordLayoutBuilder.cpp?rev=233138&r1=233137&r2=233138&view=diff
==============================================================================
--- cfe/trunk/lib/AST/RecordLayoutBuilder.cpp (original)
+++ cfe/trunk/lib/AST/RecordLayoutBuilder.cpp Tue Mar 24 18:46:25 2015
@@ -1872,14 +1872,14 @@ void RecordLayoutBuilder::UpdateAlignmen
return;
if (NewAlignment > Alignment) {
- assert(llvm::isPowerOf2_32(NewAlignment.getQuantity() &&
- "Alignment not a power of 2"));
+ assert(llvm::isPowerOf2_64(NewAlignment.getQuantity()) &&
+ "Alignment not a power of 2");
Alignment = NewAlignment;
}
if (UnpackedNewAlignment > UnpackedAlignment) {
- assert(llvm::isPowerOf2_32(UnpackedNewAlignment.getQuantity() &&
- "Alignment not a power of 2"));
+ assert(llvm::isPowerOf2_64(UnpackedNewAlignment.getQuantity()) &&
+ "Alignment not a power of 2");
UnpackedAlignment = UnpackedNewAlignment;
}
}
More information about the cfe-commits
mailing list