aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/PthreadLockChecker.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-11-25 01:32:22 +0000
committerTed Kremenek <kremenek@apple.com>2009-11-25 01:32:22 +0000
commiteb1c7a04509f5d25c09005a6d46bd8bbb3ca88cb (patch)
treef784554411a98939c9fd52750f340401a5f34cfe /lib/Analysis/PthreadLockChecker.cpp
parentf88f7ab5adaa11d050270ffee6aa871e855f83b8 (diff)
Split CodeTextRegion into FunctionTextRegion and BlockTextRegion. This a precursor to having basic static analysis support for blocks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89828 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/PthreadLockChecker.cpp')
-rw-r--r--lib/Analysis/PthreadLockChecker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/PthreadLockChecker.cpp b/lib/Analysis/PthreadLockChecker.cpp
index 66206616b0..dc6a63dd07 100644
--- a/lib/Analysis/PthreadLockChecker.cpp
+++ b/lib/Analysis/PthreadLockChecker.cpp
@@ -59,8 +59,8 @@ void PthreadLockChecker::PostVisitCallExpr(CheckerContext &C,
const CallExpr *CE) {
const GRState *state = C.getState();
const Expr *Callee = CE->getCallee();
- const CodeTextRegion *R =
- dyn_cast_or_null<CodeTextRegion>(state->getSVal(Callee).getAsRegion());
+ const FunctionTextRegion *R =
+ dyn_cast_or_null<FunctionTextRegion>(state->getSVal(Callee).getAsRegion());
if (!R)
return;