summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-11-08 19:24:47 +0000
committerDan Gohman <gohman@apple.com>2010-11-08 19:24:47 +0000
commit470ade12e00479739334aae5502e419fcd00762c (patch)
treec1a08617ed21452943022f600aebe56b0d7a158b /llvm/lib/Transforms
parent0ef474730f42e9a4ab4d205cedfa4386d942cda8 (diff)
downloadbcm5719-llvm-470ade12e00479739334aae5502e419fcd00762c.tar.gz
bcm5719-llvm-470ade12e00479739334aae5502e419fcd00762c.zip
Fix a thinko that Duncan spotted.
llvm-svn: 118430
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionAttrs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
index c4978b4df56..a2173933efb 100644
--- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -145,7 +145,7 @@ bool FunctionAttrs::AddReadAttrs(const CallGraphSCC &SCC) {
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;
}
OpenPOWER on IntegriCloud