compnerd added inline comments.
================
Comment at: lib/AST/RecordLayoutBuilder.cpp:1755
CharUnits TypeSize = Context.getTypeSizeInChars(BTy);
- if (TypeSize > FieldAlign)
+ if (TypeSize > FieldAlign &&
+ llvm::isPowerOf2_64(TypeSize.getQuantity()))
----------------
Can you add an assertion that the size is a power of two unless it is the GNU
environment?
Repository:
rC Clang
https://reviews.llvm.org/D43734
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits