summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-rename/USRFinder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clang-rename/USRFinder.cpp')
-rw-r--r--clang-tools-extra/clang-rename/USRFinder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-rename/USRFinder.cpp b/clang-tools-extra/clang-rename/USRFinder.cpp
index 809cfcf460f..b64b20d54bf 100644
--- a/clang-tools-extra/clang-rename/USRFinder.cpp
+++ b/clang-tools-extra/clang-rename/USRFinder.cpp
@@ -52,8 +52,8 @@ public:
// checking if the point lies within the length of the name of the declaration
// and the start location is sufficient.
bool VisitNamedDecl(const NamedDecl *Decl) {
- return setResult(Decl, Decl->getLocation(),
- Decl->getNameAsString().length());
+ return dyn_cast<CXXConversionDecl>(Decl) ? true :
+ setResult(Decl, Decl->getLocation(), Decl->getNameAsString().length());
}
// Expression visitors:
OpenPOWER on IntegriCloud