Fix windows buildbot error.
authorHaojian Wu <hokein@google.com>
Tue, 4 Apr 2017 09:53:55 +0000 (09:53 +0000)
committerHaojian Wu <hokein@google.com>
Tue, 4 Apr 2017 09:53:55 +0000 (09:53 +0000)
llvm-svn: 299422

clang-tools-extra/clang-rename/USRLocFinder.cpp

index 66fd541..16b7faf 100644 (file)
@@ -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)