summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirill Bobyrev <omtcyfz@gmail.com>2016-08-16 06:19:06 +0000
committerKirill Bobyrev <omtcyfz@gmail.com>2016-08-16 06:19:06 +0000
commitbc84fc9f1dc427083792de338039f20f3f95099e (patch)
treea075410008978d07ccbad83de5387f360d8e1377
parent5c5df6283a3452aefccdf1b54600bd3b0aaa36a2 (diff)
downloadbcm5719-llvm-bc84fc9f1dc427083792de338039f20f3f95099e.tar.gz
bcm5719-llvm-bc84fc9f1dc427083792de338039f20f3f95099e.zip
[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
-rw-r--r--clang-tools-extra/clang-rename/USRFinder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-rename/USRFinder.cpp b/clang-tools-extra/clang-rename/USRFinder.cpp
index a554250ef0d..400765351e8 100644
--- a/clang-tools-extra/clang-rename/USRFinder.cpp
+++ b/clang-tools-extra/clang-rename/USRFinder.cpp
@@ -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.
OpenPOWER on IntegriCloud