Author: rsmith
Date: Mon May 16 18:07:58 2016
New Revision: 269721

URL: http://llvm.org/viewvc/llvm-project?rev=269721&view=rev
Log:
Less broken fix for buildbot breakage.

Modified:
    cfe/trunk/include/clang/AST/AttrIterator.h

Modified: cfe/trunk/include/clang/AST/AttrIterator.h
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/AttrIterator.h?rev=269721&r1=269720&r2=269721&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/AttrIterator.h (original)
+++ cfe/trunk/include/clang/AST/AttrIterator.h Mon May 16 18:07:58 2016
@@ -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


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to