diff --git a/llvm/lib/Analysis/AliasSetTracker.cpp b/llvm/lib/Analysis/AliasSetTracker.cpp index 0fb419266ce9..303d7987b79e 100644 --- a/llvm/lib/Analysis/AliasSetTracker.cpp +++ b/llvm/lib/Analysis/AliasSetTracker.cpp @@ -101,7 +101,7 @@ void AliasSet::addCallSite(CallSite CS, AliasAnalysis &AA) { return; else if (AA.onlyReadsMemory(F)) { AliasTy = MayAlias; - AccessTy = Refs; + AccessTy |= Refs; return; } }