aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/PthreadLockChecker.cpp
diff options
context:
space:
mode:
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;