aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/BugReporter.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-02-26 20:29:19 +0000
committerTed Kremenek <kremenek@apple.com>2009-02-26 20:29:19 +0000
commit3daea0a051d90f8ff660a6392f0112a0e78e6dba (patch)
tree91b9ab6b989a5b888dd55e53bbcd414a7ee10233 /lib/Analysis/BugReporter.cpp
parent68694ada8f4d8f6c4b00ea5b900df96428b28fc8 (diff)
Use Loc::IsLocType() instead of isPointerType() and isReferenceType().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65568 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BugReporter.cpp')
-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() + "'";