diff options
-rw-r--r-- | clang-tools-extra/clang-rename/USRLocFinder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-rename/USRLocFinder.cpp b/clang-tools-extra/clang-rename/USRLocFinder.cpp index 66fd541fdc2..16b7fafaee6 100644 --- a/clang-tools-extra/clang-rename/USRLocFinder.cpp +++ b/clang-tools-extra/clang-rename/USRLocFinder.cpp @@ -406,7 +406,7 @@ private: // Get the closest ancester which is a declaration of a given AST node. template <typename ASTNodeType> - const Decl *getClosestAncestorDecl(ASTNodeType Node) { + const Decl *getClosestAncestorDecl(const ASTNodeType &Node) { auto Parents = Context.getParents(Node); // FIXME: figure out how to handle it when there are multiple parents. if (Parents.size() != 1) |