summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang-tools-extra/clang-rename/USRFindingAction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-rename/USRFindingAction.cpp b/clang-tools-extra/clang-rename/USRFindingAction.cpp
index 42b1782125f..da9256282f0 100644
--- a/clang-tools-extra/clang-rename/USRFindingAction.cpp
+++ b/clang-tools-extra/clang-rename/USRFindingAction.cpp
@@ -46,7 +46,7 @@ static std::vector<std::string> 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
OpenPOWER on IntegriCloud