[llvm] r319831 - [ModRefInfo] Initialize ArgMask to MRI_NoModRef.
Alina Sbirlea via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 5 12:51:20 PST 2017
Author: asbirlea
Date: Tue Dec 5 12:51:20 2017
New Revision: 319831
URL: http://llvm.org/viewvc/llvm-project?rev=319831&view=rev
Log:
[ModRefInfo] Initialize ArgMask to MRI_NoModRef.
Modified:
llvm/trunk/lib/Analysis/AliasAnalysis.cpp
Modified: llvm/trunk/lib/Analysis/AliasAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/AliasAnalysis.cpp?rev=319831&r1=319830&r2=319831&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/AliasAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/AliasAnalysis.cpp Tue Dec 5 12:51:20 2017
@@ -263,7 +263,7 @@ ModRefInfo AAResults::getModRefInfo(Immu
// - If CS2 modifies location, dependence exists if CS1 reads or writes.
// - If CS2 only reads location, dependence exists if CS1 writes.
ModRefInfo ArgModRefCS2 = getArgModRefInfo(CS2, CS2ArgIdx);
- ModRefInfo ArgMask;
+ ModRefInfo ArgMask = MRI_NoModRef;
if (isModSet(ArgModRefCS2))
ArgMask = MRI_ModRef;
else if (isRefSet(ArgModRefCS2))
More information about the llvm-commits
mailing list