]> granicus.if.org Git - clang/commitdiff
Qualify the name of the llvm::cast template. I am somewhat amazed that GCC parsed...
authorDouglas Gregor <dgregor@apple.com>
Wed, 25 Nov 2009 00:38:36 +0000 (00:38 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 25 Nov 2009 00:38:36 +0000 (00:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89822 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Redeclarable.h

index 35af8c766e97287e0f8ba1c238f1f5622053d6bf..01f4b29a61f40d6104b4bb229d8e923b5a4386bd 100644 (file)
@@ -15,6 +15,7 @@
 #define LLVM_CLANG_AST_REDECLARABLE_H
 
 #include "llvm/ADT/PointerIntPair.h"
+#include "llvm/Support/Casting.h"
 #include <iterator>
 
 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<decl_type>(
+      RedeclLink = PreviousDeclLink(llvm::cast<decl_type>(
                                       PrevDecl->getMostRecentDeclaration()));
       First = PrevDecl->getFirstDeclaration();
       assert(First->RedeclLink.NextIsLatest() && "Expected first");