summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-06-23 18:05:21 +0000
committerTed Kremenek <kremenek@apple.com>2009-06-23 18:05:21 +0000
commit404b132dc0b62b1a5ba569268effe8bdf9016fff (patch)
tree4d01a8c50fb1ae541dac7633a72d3fa6d9aebc86 /clang/lib/Analysis/CFRefCount.cpp
parent736ffeeab434c864a28278ec1a67df384165a1eb (diff)
downloadbcm5719-llvm-404b132dc0b62b1a5ba569268effe8bdf9016fff.tar.gz
bcm5719-llvm-404b132dc0b62b1a5ba569268effe8bdf9016fff.zip
Move 'hasStackStorage()' and 'hasHeapStorage()' from MemRegionManager to MemRegion.
llvm-svn: 73973
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r--clang/lib/Analysis/CFRefCount.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp
index 1ccd0924f37..46333a74f27 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/lib/Analysis/CFRefCount.cpp
@@ -3141,7 +3141,7 @@ void CFRefCount::EvalBind(GRStmtNodeBuilderRef& B, SVal location, SVal val) {
escapes = true;
else {
const MemRegion* R = cast<loc::MemRegionVal>(location).getRegion();
- escapes = !B.getStateManager().hasStackStorage(R);
+ escapes = !R->hasStackStorage();
if (!escapes) {
// To test (3), generate a new state with the binding removed. If it is
OpenPOWER on IntegriCloud