From: Douglas Gregor Date: Tue, 7 Jul 2015 04:06:31 +0000 (+0000) Subject: Use llvm::alignOf rather than alignof() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a55073628f52422e4df083ca4db05befd87e2163;p=clang Use llvm::alignOf rather than alignof() git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241551 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/TypeLoc.h b/include/clang/AST/TypeLoc.h index e55036489c..96f4410a20 100644 --- a/include/clang/AST/TypeLoc.h +++ b/include/clang/AST/TypeLoc.h @@ -948,8 +948,8 @@ public: } unsigned getExtraLocalDataAlignment() const { - static_assert(alignof(ObjCObjectTypeLoc) >= alignof(TypeSourceInfo *), - "not enough alignment for tail-allocated data"); + assert(llvm::alignOf() > llvm::alignOf() + && "not enough alignment for tail-allocated data"); return llvm::alignOf(); }