diff options
author | Anna Zaks <ganna@apple.com> | 2012-06-02 00:40:52 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-06-02 00:40:52 +0000 |
commit | c0e71a15bce9bb8c0d4ec1c42fab70c03140f9e0 (patch) | |
tree | ab99f8c7d0d7411288131270b840b4e0349ebc04 /lib/StaticAnalyzer/Core/ExplodedGraph.cpp | |
parent | 183ff2aaacbc1995ed64d5e2ffea4456fd871633 (diff) |
[analyzer] Rely on canBeInlined utility instead of checking CallExpr
explicitly.
This will make it easier to add inlining support to more expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157870 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/ExplodedGraph.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/ExplodedGraph.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Core/ExplodedGraph.cpp b/lib/StaticAnalyzer/Core/ExplodedGraph.cpp index 5b9f451e97..b75765d336 100644 --- a/lib/StaticAnalyzer/Core/ExplodedGraph.cpp +++ b/lib/StaticAnalyzer/Core/ExplodedGraph.cpp @@ -13,6 +13,7 @@ //===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h" +#include "clang/StaticAnalyzer/Core/PathSensitive/ObjCMessage.h" #include "clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h" #include "clang/AST/Stmt.h" #include "clang/AST/ParentMap.h" @@ -114,7 +115,7 @@ bool ExplodedGraph::shouldCollect(const ExplodedNode *node) { // Condition 9. const ProgramPoint SuccLoc = succ->getLocation(); if (const StmtPoint *SP = dyn_cast<StmtPoint>(&SuccLoc)) - if (isa<CallExpr>(SP->getStmt())) + if (CallOrObjCMessage::canBeInlined(SP->getStmt())) return false; return true; |