From 6b601395e79291ec98f596f724001976106b6f6e Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Sun, 28 Feb 2010 06:39:11 +0000 Subject: [PATCH] Use getBody() to get the function definition when the decl referenced is not definition. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97373 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Checker/CallInliner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Checker/CallInliner.cpp b/lib/Checker/CallInliner.cpp index 659d9b8bcf..88e1a05d11 100644 --- a/lib/Checker/CallInliner.cpp +++ b/lib/Checker/CallInliner.cpp @@ -42,7 +42,7 @@ bool CallInliner::EvalCallExpr(CheckerContext &C, const CallExpr *CE) { if (!FD) return false; - if (!FD->isThisDeclarationADefinition()) + if (!FD->getBody(FD)) return false; // Now we have the definition of the callee, create a CallEnter node. -- 2.40.0