From: Richard Smith Date: Mon, 16 May 2016 23:03:40 +0000 (+0000) Subject: Try to make the buildbots green again: avoid the need for class Attr to be X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd71fce9145fde573a6508cdc542ea4e7bc9cdcd;p=clang Try to make the buildbots green again: avoid the need for class Attr to be complete for users of AttrVec. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269720 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/AttrIterator.h b/include/clang/AST/AttrIterator.h index b768e5636a..52a8d8ddd3 100644 --- a/include/clang/AST/AttrIterator.h +++ b/include/clang/AST/AttrIterator.h @@ -23,6 +23,13 @@ namespace clang { class Attr; } +namespace llvm { + // Explicitly opt into 4 byte alignment for Attr*, to avoid the need to + // include the heavyweight Attr.h to use a TinyPtrVector. + template <> + struct PointerLikeTypeTraits : PointerLikeTypeTraits {}; +} + // Defined in ASTContext.h void *operator new(size_t Bytes, const clang::ASTContext &C, size_t Alignment = 8);