[clang-rename] fix broken build
As Eric Fiselier pointed out, r278760 breaks build, because RecursiveASTVisitor doesn't have a const overload. This patch is a quick fix. llvm-svn: 278780
This commit is contained in:
parent
5c5df6283a
commit
bc84fc9f1d
|
|
@ -179,7 +179,7 @@ const NamedDecl *getNamedDeclAt(const ASTContext &Context,
|
|||
NamedDeclFindingASTVisitor Visitor(Point, Context);
|
||||
|
||||
// We only want to search the decls that exist in the same file as the point.
|
||||
for (const auto *CurrDecl : Context.getTranslationUnitDecl()->decls()) {
|
||||
for (auto *CurrDecl : Context.getTranslationUnitDecl()->decls()) {
|
||||
const SourceLocation FileLoc = CurrDecl->getLocStart();
|
||||
StringRef FileName = Context.getSourceManager().getFilename(FileLoc);
|
||||
// FIXME: Add test.
|
||||
|
|
|
|||
Loading…
Reference in New Issue