summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2017-04-04 09:53:55 +0000
committerHaojian Wu <hokein@google.com>2017-04-04 09:53:55 +0000
commit43ba52535792a35d6b70a72695c8760dac326330 (patch)
tree07f1883578895b3b49471150daefdfc2c7e1fa6d
parent6d2131a04c666975a5b55964e44097c74f231274 (diff)
downloadbcm5719-llvm-43ba52535792a35d6b70a72695c8760dac326330.tar.gz
bcm5719-llvm-43ba52535792a35d6b70a72695c8760dac326330.zip
Fix windows buildbot error.
llvm-svn: 299422
-rw-r--r--clang-tools-extra/clang-rename/USRLocFinder.cpp2
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)
OpenPOWER on IntegriCloud