[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:
Kirill Bobyrev 2016-08-16 06:19:06 +00:00
parent 5c5df6283a
commit bc84fc9f1d
1 changed files with 1 additions and 1 deletions

View File

@ -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.