[clang-tools-extra] r299422 - Fix windows buildbot error.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 4 02:53:56 PDT 2017
Author: hokein
Date: Tue Apr 4 04:53:55 2017
New Revision: 299422
URL: http://llvm.org/viewvc/llvm-project?rev=299422&view=rev
Log:
Fix windows buildbot error.
Modified:
clang-tools-extra/trunk/clang-rename/USRLocFinder.cpp
Modified: clang-tools-extra/trunk/clang-rename/USRLocFinder.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-rename/USRLocFinder.cpp?rev=299422&r1=299421&r2=299422&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-rename/USRLocFinder.cpp (original)
+++ clang-tools-extra/trunk/clang-rename/USRLocFinder.cpp Tue Apr 4 04:53:55 2017
@@ -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)
More information about the cfe-commits
mailing list