summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/FunctionAttrs.cpp
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
commit554375b707d741c357a78650160ba5d093b4993a (patch)
tree44bd51098f28db9b8fab1ef8ac8debb7374f9174 /lib/Transforms/IPO/FunctionAttrs.cpp
parent7179d1e5c0acfbb0980eaf85f266cd8981dbd12d (diff)
downloadllvm-554375b707d741c357a78650160ba5d093b4993a.tar.gz
llvm-554375b707d741c357a78650160ba5d093b4993a.tar.bz2
llvm-554375b707d741c357a78650160ba5d093b4993a.tar.xz
Fix a thinko that Duncan spotted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118430 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/FunctionAttrs.cpp')
-rw-r--r--lib/Transforms/IPO/FunctionAttrs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/FunctionAttrs.cpp b/lib/Transforms/IPO/FunctionAttrs.cpp
index c4978b4df5..a2173933ef 100644
--- a/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/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;
}