Skip to content
Snippets Groups Projects
Commit 24f1d22d authored by Richard Smith's avatar Richard Smith
Browse files

Less broken fix for buildbot breakage.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269721 91177308-0d34-0410-b5e6-96231b3b80d8
parent bd71fce9
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,13 @@ namespace llvm { ...@@ -27,7 +27,13 @@ namespace llvm {
// Explicitly opt into 4 byte alignment for Attr*, to avoid the need to // Explicitly opt into 4 byte alignment for Attr*, to avoid the need to
// include the heavyweight Attr.h to use a TinyPtrVector<Attr*>. // include the heavyweight Attr.h to use a TinyPtrVector<Attr*>.
template <> 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 // Defined in ASTContext.h
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment