From 951f98c0376f5daac8d80d0c205f9ec1f69d697d Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 25 Nov 2009 00:38:36 +0000 Subject: [PATCH] Qualify the name of the llvm::cast template. I am somewhat amazed that GCC parsed this llvm-svn: 89822 --- clang/include/clang/AST/Redeclarable.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang/include/clang/AST/Redeclarable.h b/clang/include/clang/AST/Redeclarable.h index 35af8c766e97..01f4b29a61f4 100644 --- a/clang/include/clang/AST/Redeclarable.h +++ b/clang/include/clang/AST/Redeclarable.h @@ -15,6 +15,7 @@ #define LLVM_CLANG_AST_REDECLARABLE_H #include "llvm/ADT/PointerIntPair.h" +#include "llvm/Support/Casting.h" #include namespace clang { @@ -110,7 +111,7 @@ public: // Point to previous. Make sure that this is actually the most recent // redeclaration, or we can build invalid chains. If the most recent // redeclaration is invalid, it won't be PrevDecl, but we want it anyway. - RedeclLink = PreviousDeclLink(cast( + RedeclLink = PreviousDeclLink(llvm::cast( PrevDecl->getMostRecentDeclaration())); First = PrevDecl->getFirstDeclaration(); assert(First->RedeclLink.NextIsLatest() && "Expected first");