aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/CallGraph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Analysis/CallGraph.cpp')
-rw-r--r--lib/Analysis/CallGraph.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Analysis/CallGraph.cpp b/lib/Analysis/CallGraph.cpp
index f605bd98f5..ae8845db63 100644
--- a/lib/Analysis/CallGraph.cpp
+++ b/lib/Analysis/CallGraph.cpp
@@ -51,10 +51,7 @@ void CGBuilder::VisitCallExpr(CallExpr *CE) {
if (FunctionDecl *CalleeDecl = CE->getDirectCallee()) {
Entity Ent = Entity::get(CalleeDecl, G.getProgram());
CallGraphNode *CalleeNode = G.getOrInsertFunction(Ent);
-
- const Decl *Parent = ASTLocation::FindImmediateParent(FD, CE);
-
- CallerNode->addCallee(ASTLocation(Parent, CE), CalleeNode);
+ CallerNode->addCallee(ASTLocation(FD, CE), CalleeNode);
}
}