diff options
author | Chris Lattner <sabre@nondot.org> | 2008-06-05 23:38:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-06-05 23:38:34 +0000 |
commit | 0282d0247e99a4ee3b855d78dfe2a6ceda9db83e (patch) | |
tree | 0176c7bb0310b21c91d2b6400c0002b5883229e5 /llvm/lib | |
parent | c7007a721106ce90a75195bc586a27fe63d591a8 (diff) | |
download | bcm5719-llvm-0282d0247e99a4ee3b855d78dfe2a6ceda9db83e.tar.gz bcm5719-llvm-0282d0247e99a4ee3b855d78dfe2a6ceda9db83e.zip |
Let libcall semantics decide whether it knows about functions
with definitions or not.
llvm-svn: 52028
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Analysis/LibCallAliasAnalysis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LibCallAliasAnalysis.cpp b/llvm/lib/Analysis/LibCallAliasAnalysis.cpp index 6c8472b628c..afc60ddb84a 100644 --- a/llvm/lib/Analysis/LibCallAliasAnalysis.cpp +++ b/llvm/lib/Analysis/LibCallAliasAnalysis.cpp @@ -155,8 +155,8 @@ LibCallAliasAnalysis::getModRefInfo(CallSite CS, Value *P, unsigned Size) { // 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; |