From a60ca8104e5ca45e67deae7e8489c528fc0ce21f Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Wed, 15 Apr 2015 01:21:57 +0000 Subject: [PATCH] Change range-based for-loop to be -Wrange-loop-analysis clean. No functionality change. llvm-svn: 234965 --- clang-tools-extra/clang-rename/USRFindingAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tools-extra/clang-rename/USRFindingAction.cpp b/clang-tools-extra/clang-rename/USRFindingAction.cpp index 42b1782125fe..da9256282f0c 100644 --- a/clang-tools-extra/clang-rename/USRFindingAction.cpp +++ b/clang-tools-extra/clang-rename/USRFindingAction.cpp @@ -46,7 +46,7 @@ static std::vector getAllConstructorUSRs( const auto *RecordDecl = Decl->getDefinition(); // Iterate over all the constructors and add their USRs. - for (const auto &CtorDecl : RecordDecl->ctors()) + for (const auto *CtorDecl : RecordDecl->ctors()) USRs.push_back(getUSRForDecl(CtorDecl)); // Ignore destructors. GetLocationsOfUSR will find the declaration of and