From: Richard Smith Date: Mon, 16 May 2016 23:07:58 +0000 (+0000) Subject: Less broken fix for buildbot breakage. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24f1d22d4499f4bee7790dfa29c885bff7892d1b;p=clang Less broken fix for buildbot breakage. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269721 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/AttrIterator.h b/include/clang/AST/AttrIterator.h index 52a8d8ddd3..1176688fe0 100644 --- a/include/clang/AST/AttrIterator.h +++ b/include/clang/AST/AttrIterator.h @@ -27,7 +27,13 @@ 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 {}; + struct PointerLikeTypeTraits { + static void *getAsVoidPointer(clang::Attr *P) { return P; } + static clang::Attr *getFromVoidPointer(void *P) { + return static_cast(P); + } + enum { NumLowBitsAvailable = 2 }; + }; } // Defined in ASTContext.h