]> granicus.if.org Git - clang/commitdiff
Less broken fix for buildbot breakage.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 16 May 2016 23:07:58 +0000 (23:07 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 16 May 2016 23:07:58 +0000 (23:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269721 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/AttrIterator.h

index 52a8d8ddd39a81baef27d8f7a901e3b2ff79ec9b..1176688fe0c4dc213bb13ba902445f43a30ebf50 100644 (file)
@@ -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<Attr*>.
   template <>
-  struct PointerLikeTypeTraits<Attr *> : PointerLikeTypeTraits<void *> {};
+  struct PointerLikeTypeTraits<clang::Attr *> {
+    static void *getAsVoidPointer(clang::Attr *P) { return P; }
+    static clang::Attr *getFromVoidPointer(void *P) {
+      return static_cast<clang::Attr *>(P);
+    }
+    enum { NumLowBitsAvailable = 2 };
+  };
 }
 
 // Defined in ASTContext.h