summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-06-02 00:40:52 +0000
committerAnna Zaks <ganna@apple.com>2012-06-02 00:40:52 +0000
commit7ba26150478748c050aa61753e6ced319fa72987 (patch)
tree9311ebd51efd16afa74ff9c41c316ff0ca382429 /clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp
parent561e190a36c9fd4aae01c412cc715e67a3171a74 (diff)
downloadbcm5719-llvm-7ba26150478748c050aa61753e6ced319fa72987.tar.gz
bcm5719-llvm-7ba26150478748c050aa61753e6ced319fa72987.zip
[analyzer] Rely on canBeInlined utility instead of checking CallExpr
explicitly. This will make it easier to add inlining support to more expressions. llvm-svn: 157870
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp b/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp
index 5b9f451e971..b75765d336e 100644
--- a/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud