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 | 15ccbf59a90e796dd6e756c4ae43cc7ac03d0b1b (patch) | |
tree | 0b3a88e79e8659330c5092335a9f0a5c7b6300c4 /lib | |
parent | 6fc5b48f64cad8fc5dc48102da06ddcc5d7710ec (diff) | |
download | external_llvm-15ccbf59a90e796dd6e756c4ae43cc7ac03d0b1b.zip external_llvm-15ccbf59a90e796dd6e756c4ae43cc7ac03d0b1b.tar.gz external_llvm-15ccbf59a90e796dd6e756c4ae43cc7ac03d0b1b.tar.bz2 |
Let libcall semantics decide whether it knows about functions
with definitions or not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Analysis/LibCallAliasAnalysis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/LibCallAliasAnalysis.cpp b/lib/Analysis/LibCallAliasAnalysis.cpp index 6c8472b..afc60dd 100644 --- a/lib/Analysis/LibCallAliasAnalysis.cpp +++ b/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; |