r241554 - Fix alignment check for ObjCObjectTypeLoc.
Douglas Gregor
dgregor at apple.com
Mon Jul 6 21:23:52 PDT 2015
Author: dgregor
Date: Mon Jul 6 23:23:51 2015
New Revision: 241554
URL: http://llvm.org/viewvc/llvm-project?rev=241554&view=rev
Log:
Fix alignment check for ObjCObjectTypeLoc.
Modified:
cfe/trunk/include/clang/AST/TypeLoc.h
Modified: cfe/trunk/include/clang/AST/TypeLoc.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/TypeLoc.h?rev=241554&r1=241553&r2=241554&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/TypeLoc.h (original)
+++ cfe/trunk/include/clang/AST/TypeLoc.h Mon Jul 6 23:23:51 2015
@@ -948,8 +948,9 @@ public:
}
unsigned getExtraLocalDataAlignment() const {
- assert(llvm::alignOf<ObjCObjectTypeLoc>() > llvm::alignOf<TypeSourceInfo *>()
- && "not enough alignment for tail-allocated data");
+ assert(llvm::alignOf<ObjCObjectTypeLoc>()
+ >= llvm::alignOf<TypeSourceInfo *>() &&
+ "not enough alignment for tail-allocated data");
return llvm::alignOf<TypeSourceInfo *>();
}
More information about the cfe-commits
mailing list