summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/BugReporter.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-03-03 22:06:47 +0000
committerTed Kremenek <kremenek@apple.com>2009-03-03 22:06:47 +0000
commitc9747dd60f13c8e47c0ea490ef7e2b74cf93ae20 (patch)
tree31cf2aade86d38a56bb2d2a8bc7d1584da4450ce /clang/lib/Analysis/BugReporter.cpp
parentb833ce74d8c98ba15b51fd9f4b5017042a50d9cb (diff)
downloadbcm5719-llvm-c9747dd60f13c8e47c0ea490ef7e2b74cf93ae20.tar.gz
bcm5719-llvm-c9747dd60f13c8e47c0ea490ef7e2b74cf93ae20.zip
Rework use of loc::SymbolVal in the retain/release checker to use the new method
SVal::getAsLocSymbol(). This simplifies the code and allows the retain/release checker to (I believe) also correctly reason about location symbols wrapped in SymbolicRegions. Along the way I cleaned up SymbolRef a little, disallowing implicit casts to 'unsigned'. llvm-svn: 65972
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 6f6b3c15663..e1265ded171 100644
--- a/clang/lib/Analysis/BugReporter.cpp
+++ b/clang/lib/Analysis/BugReporter.cpp
@@ -531,7 +531,7 @@ public:
else
return true;
- assert (ScanSym.isInitialized());
+ assert (ScanSym.isValid());
if (!BR.isNotable(ScanSym))
return true;
OpenPOWER on IntegriCloud