aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-07-26 00:27:51 +0000
committerAnna Zaks <ganna@apple.com>2012-07-26 00:27:51 +0000
commit9dc5167e4017ef4c8b327abb6f72225eec2e0f19 (patch)
treeaf01a87a9158c3e3f8b20f6f5c22af3d063754a7 /lib/StaticAnalyzer/Core/ExprEngineObjC.cpp
parentfc999ac663eca933359047c88dc4a1ef6e579e8a (diff)
[analyzer] Inline ObjC class methods.
- Some cleanup(the TODOs) will be done after ObjC method inlining is complete. - Simplified CallEvent::getDefinition not to require ISDynamicDispatch parameter. - Also addressed Jordan's comments from r160530. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160768 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/ExprEngineObjC.cpp')
-rw-r--r--lib/StaticAnalyzer/Core/ExprEngineObjC.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp b/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp
index a8e0b3b809..1e59fb117b 100644
--- a/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp
+++ b/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp
@@ -190,9 +190,6 @@ void ExprEngine::VisitObjCMessage(const ObjCMethodCall &msg,
// Generate a transition to non-Nil state.
if (notNilState != state)
Pred = Bldr.generateNode(currentStmt, Pred, notNilState);
-
- // Evaluate the call.
- defaultEvalCall(Bldr, Pred, msg);
}
} else {
// Check for special class methods.
@@ -242,10 +239,10 @@ void ExprEngine::VisitObjCMessage(const ObjCMethodCall &msg,
}
}
-
- // Evaluate the call.
- defaultEvalCall(Bldr, Pred, msg);
}
+ // Evaluate the call.
+ defaultEvalCall(Bldr, Pred, msg);
+
}
ExplodedNodeSet dstPostvisit;