[cfe-commits] r89822 - /cfe/trunk/include/clang/AST/Redeclarable.h

Douglas Gregor dgregor at apple.com
Tue Nov 24 16:38:36 PST 2009


Author: dgregor
Date: Tue Nov 24 18:38:36 2009
New Revision: 89822

URL: http://llvm.org/viewvc/llvm-project?rev=89822&view=rev
Log:
Qualify the name of the llvm::cast template. I am somewhat amazed that GCC parsed this

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

Modified: cfe/trunk/include/clang/AST/Redeclarable.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Redeclarable.h?rev=89822&r1=89821&r2=89822&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/Redeclarable.h (original)
+++ cfe/trunk/include/clang/AST/Redeclarable.h Tue Nov 24 18:38:36 2009
@@ -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 @@
       // 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");





More information about the cfe-commits mailing list