summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/BugReporter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Analysis/BugReporter.cpp')
-rw-r--r--clang/lib/Analysis/BugReporter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp
index a89542d4c11..1b013200b9e 100644
--- a/clang/lib/Analysis/BugReporter.cpp
+++ b/clang/lib/Analysis/BugReporter.cpp
@@ -471,7 +471,7 @@ public:
FullSourceLoc L(S->getLocStart(), BR.getSourceManager());
- if (VD->getType()->isPointerLikeType()) {
+ if (VD->getType()->isPointerType() || VD->getType()->isReferenceType()) {
std::string msg = "'" + std::string(VD->getNameAsString()) +
"' now aliases '" + MostRecent->getNameAsString() + "'";
OpenPOWER on IntegriCloud