r241551 - Use llvm::alignOf rather than alignof()
Douglas Gregor
dgregor at apple.com
Mon Jul 6 21:06:31 PDT 2015
Author: dgregor
Date: Mon Jul 6 23:06:31 2015
New Revision: 241551
URL: http://llvm.org/viewvc/llvm-project?rev=241551&view=rev
Log:
Use llvm::alignOf rather than alignof()
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=241551&r1=241550&r2=241551&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/TypeLoc.h (original)
+++ cfe/trunk/include/clang/AST/TypeLoc.h Mon Jul 6 23:06:31 2015
@@ -948,8 +948,8 @@ public:
}
unsigned getExtraLocalDataAlignment() const {
- static_assert(alignof(ObjCObjectTypeLoc) >= 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