with definitions or not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52028
91177308-0d34-0410-b5e6-
96231b3b80d8
// If this is a direct call to a function that LCI knows about, get the
// information about the runtime function.
// If this is a direct call to a function that LCI knows about, get the
// information about the runtime function.
- if (Function *F = CS.getCalledFunction()) {
- if (LCI && F->isDeclaration()) {
+ if (LCI) {
+ if (Function *F = CS.getCalledFunction()) {
if (const LibCallFunctionInfo *FI = LCI->getFunctionInfo(F)) {
MRInfo = ModRefResult(MRInfo & AnalyzeLibCallDetails(FI, CS, P, Size));
if (MRInfo == NoModRef) return NoModRef;
if (const LibCallFunctionInfo *FI = LCI->getFunctionInfo(F)) {
MRInfo = ModRefResult(MRInfo & AnalyzeLibCallDetails(FI, CS, P, Size));
if (MRInfo == NoModRef) return NoModRef;