[llvm-commits] [llvm] r52028 - /llvm/trunk/lib/Analysis/LibCallAliasAnalysis.cpp
Chris Lattner
sabre at nondot.org
Thu Jun 5 16:38:34 PDT 2008
Author: lattner
Date: Thu Jun 5 18:38:34 2008
New Revision: 52028
URL: http://llvm.org/viewvc/llvm-project?rev=52028&view=rev
Log:
Let libcall semantics decide whether it knows about functions
with definitions or not.
Modified:
llvm/trunk/lib/Analysis/LibCallAliasAnalysis.cpp
Modified: llvm/trunk/lib/Analysis/LibCallAliasAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LibCallAliasAnalysis.cpp?rev=52028&r1=52027&r2=52028&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LibCallAliasAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/LibCallAliasAnalysis.cpp Thu Jun 5 18:38:34 2008
@@ -155,8 +155,8 @@
// 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;
More information about the llvm-commits
mailing list