forked from OSchip/llvm-project
Qualify the name of the llvm::cast template. I am somewhat amazed that GCC parsed this
llvm-svn: 89822
This commit is contained in:
parent
dce6f66cf0
commit
951f98c037
|
@ -15,6 +15,7 @@
|
||||||
#define LLVM_CLANG_AST_REDECLARABLE_H
|
#define LLVM_CLANG_AST_REDECLARABLE_H
|
||||||
|
|
||||||
#include "llvm/ADT/PointerIntPair.h"
|
#include "llvm/ADT/PointerIntPair.h"
|
||||||
|
#include "llvm/Support/Casting.h"
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
|
|
||||||
namespace clang {
|
namespace clang {
|
||||||
|
@ -110,7 +111,7 @@ public:
|
||||||
// Point to previous. Make sure that this is actually the most recent
|
// Point to previous. Make sure that this is actually the most recent
|
||||||
// redeclaration, or we can build invalid chains. If 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.
|
// 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()));
|
PrevDecl->getMostRecentDeclaration()));
|
||||||
First = PrevDecl->getFirstDeclaration();
|
First = PrevDecl->getFirstDeclaration();
|
||||||
assert(First->RedeclLink.NextIsLatest() && "Expected first");
|
assert(First->RedeclLink.NextIsLatest() && "Expected first");
|
||||||
|
|
Loading…
Reference in New Issue