diff options
author | George Karpenkov <ekarpenkov@apple.com> | 2018-06-27 01:51:55 +0000 |
---|---|---|
committer | George Karpenkov <ekarpenkov@apple.com> | 2018-06-27 01:51:55 +0000 |
commit | dd18b11b8e0ad9e8ff7e2d1bc3ebdc3c690e97ed (patch) | |
tree | 0de787feaa8c30a40f5c5e1efef6432558054cb2 /clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp | |
parent | fb5e8d96faa74849f9f2d3b3084c751a2a592ea2 (diff) | |
download | bcm5719-llvm-dd18b11b8e0ad9e8ff7e2d1bc3ebdc3c690e97ed.tar.gz bcm5719-llvm-dd18b11b8e0ad9e8ff7e2d1bc3ebdc3c690e97ed.zip |
[analyzer] [NFC] A convenient getter for getting a current stack frame
Differential Revision: https://reviews.llvm.org/D44756
llvm-svn: 335701
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp index 0005ec470d2..8de653c10f7 100644 --- a/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp @@ -149,7 +149,7 @@ void ExprInspectionChecker::analyzerEval(const CallExpr *CE, // A specific instantiation of an inlined function may have more constrained // values than can generally be assumed. Skip the check. - if (LC->getCurrentStackFrame()->getParent() != nullptr) + if (LC->getStackFrame()->getParent() != nullptr) return; reportBug(getArgumentValueString(CE, C), C); @@ -178,7 +178,7 @@ void ExprInspectionChecker::analyzerCheckInlined(const CallExpr *CE, // when we are analyzing it as an inlined function. This means that // clang_analyzer_checkInlined(true) should always print TRUE, but // clang_analyzer_checkInlined(false) should never actually print anything. - if (LC->getCurrentStackFrame()->getParent() == nullptr) + if (LC->getStackFrame()->getParent() == nullptr) return; reportBug(getArgumentValueString(CE, C), C); |