summaryrefslogtreecommitdiffstats
path: root/lib/Index/CallGraph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Index/CallGraph.cpp')
-rw-r--r--lib/Index/CallGraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Index/CallGraph.cpp b/lib/Index/CallGraph.cpp
index bf3f5a8..94790b8 100644
--- a/lib/Index/CallGraph.cpp
+++ b/lib/Index/CallGraph.cpp
@@ -74,7 +74,7 @@ void CallGraph::addTU(ASTContext& Ctx) {
I != E; ++I) {
if (FunctionDecl *FD = dyn_cast<FunctionDecl>(*I)) {
- if (FD->isThisDeclarationADefinition()) {
+ if (FD->doesThisDeclarationHaveABody()) {
// Set caller's ASTContext.
Entity Ent = Entity::get(FD, Prog);
CallGraphNode *Node = getOrInsertFunction(Ent);
OpenPOWER on IntegriCloud