From bd71fce9145fde573a6508cdc542ea4e7bc9cdcd Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 16 May 2016 23:03:40 +0000 Subject: [PATCH] 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 --- include/clang/AST/AttrIterator.h | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 2.40.0