diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-11-25 01:32:22 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-11-25 01:32:22 +0000 |
commit | 10a50e7371cef890f9448ab4e86cefa52a88fd16 (patch) | |
tree | 41bdbbdf24fa44a970a3cf3388ac24ab967ec06b /clang/lib/Analysis/PthreadLockChecker.cpp | |
parent | 906d871e6c9266d0a9a69df8cbe0ada689f63d21 (diff) | |
download | bcm5719-llvm-10a50e7371cef890f9448ab4e86cefa52a88fd16.tar.gz bcm5719-llvm-10a50e7371cef890f9448ab4e86cefa52a88fd16.zip |
Split CodeTextRegion into FunctionTextRegion and BlockTextRegion. This a precursor to having basic static analysis support for blocks.
llvm-svn: 89828
Diffstat (limited to 'clang/lib/Analysis/PthreadLockChecker.cpp')
-rw-r--r-- | clang/lib/Analysis/PthreadLockChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/PthreadLockChecker.cpp b/clang/lib/Analysis/PthreadLockChecker.cpp index 66206616b00..dc6a63dd079 100644 --- a/clang/lib/Analysis/PthreadLockChecker.cpp +++ b/clang/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; |