diff options
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionAttrs.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/FunctionAttrs.cpp | 2 |
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; } |