aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Analysis/BugReporter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp
index 1b013200b9..50ef3070ab 100644
--- a/lib/Analysis/BugReporter.cpp
+++ b/lib/Analysis/BugReporter.cpp
@@ -468,10 +468,9 @@ public:
return true;
// Create the diagnostic.
-
FullSourceLoc L(S->getLocStart(), BR.getSourceManager());
- if (VD->getType()->isPointerType() || VD->getType()->isReferenceType()) {
+ if (Loc::IsLocType(VD->getType())) {
std::string msg = "'" + std::string(VD->getNameAsString()) +
"' now aliases '" + MostRecent->getNameAsString() + "'";