summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/NoReturnFunctionChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Checker/NoReturnFunctionChecker.cpp')
-rw-r--r--clang/lib/Checker/NoReturnFunctionChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Checker/NoReturnFunctionChecker.cpp b/clang/lib/Checker/NoReturnFunctionChecker.cpp
index 1a902dc2d84..12527e07622 100644
--- a/clang/lib/Checker/NoReturnFunctionChecker.cpp
+++ b/clang/lib/Checker/NoReturnFunctionChecker.cpp
@@ -37,7 +37,7 @@ void NoReturnFunctionChecker::PostVisitCallExpr(CheckerContext &C,
const GRState *state = C.getState();
const Expr *Callee = CE->getCallee();
- bool BuildSinks = Callee->getType()->getNoReturnAttr();
+ bool BuildSinks = getFunctionExtInfo(Callee->getType()).getNoReturn();
if (!BuildSinks) {
SVal L = state->getSVal(Callee);
OpenPOWER on IntegriCloud