[llvm-commits] [llvm] r118430 - /llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp
Dan Gohman
gohman at apple.com
Mon Nov 8 11:24:47 PST 2010
Author: djg
Date: Mon Nov 8 13:24:47 2010
New Revision: 118430
URL: http://llvm.org/viewvc/llvm-project?rev=118430&view=rev
Log:
Fix a thinko that Duncan spotted.
Modified:
llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp
Modified: llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp?rev=118430&r1=118429&r2=118430&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp Mon Nov 8 13:24:47 2010
@@ -145,7 +145,7 @@
AliasAnalysis::Location Loc(Arg,
AliasAnalysis::UnknownSize,
I->getMetadata(LLVMContext::MD_tbaa));
- if (!AA->pointsToConstantMemory(Arg, /*OrLocal=*/true))
+ if (!AA->pointsToConstantMemory(Loc, /*OrLocal=*/true))
// Writes memory. Just give up.
return false;
}
More information about the llvm-commits
mailing list