Index: cfe/trunk/include/clang/Analysis/CallGraph.h =================================================================== --- cfe/trunk/include/clang/Analysis/CallGraph.h +++ cfe/trunk/include/clang/Analysis/CallGraph.h @@ -157,7 +157,7 @@ inline bool empty() const {return CalledFunctions.empty(); } inline unsigned size() const {return CalledFunctions.size(); } - void addCallee(CallGraphNode *N, CallGraph *CG) { + void addCallee(CallGraphNode *N) { CalledFunctions.push_back(N); } Index: cfe/trunk/lib/Analysis/CallGraph.cpp =================================================================== --- cfe/trunk/lib/Analysis/CallGraph.cpp +++ cfe/trunk/lib/Analysis/CallGraph.cpp @@ -55,7 +55,7 @@ void addCalledDecl(Decl *D) { if (G->includeInGraph(D)) { CallGraphNode *CalleeNode = G->getOrInsertNode(D); - CallerNode->addCallee(CalleeNode, G); + CallerNode->addCallee(CalleeNode); } } @@ -154,7 +154,7 @@ Node = llvm::make_unique(F); // Make Root node a parent of all functions to make sure all are reachable. if (F) - Root->addCallee(Node.get(), this); + Root->addCallee(Node.get()); return Node.get(); }