diff --git a/llvm/include/llvm/Analysis/AliasAnalysis.h b/llvm/include/llvm/Analysis/AliasAnalysis.h index 7f6fe5d94dc7a498b2fb11b0fd8ac6e96205eb2a..25e972bb5f9a34b95168d6e06046c1397ea62cd9 100644 --- a/llvm/include/llvm/Analysis/AliasAnalysis.h +++ b/llvm/include/llvm/Analysis/AliasAnalysis.h @@ -270,7 +270,9 @@ public: /// true. For use when the call site is not known. /// static bool onlyReadsMemory(ModRefBehavior MRB) { - return MRB == DoesNotAccessMemory || MRB == OnlyReadsMemory; + return MRB == DoesNotAccessMemory || + MRB == AccessesArgumentsReadonly || + MRB == OnlyReadsMemory; }