[llvm] r331222 - [ModRefInfo] Rename local variable IsMustAlias to avoid shadowing MustAlias enum entry.
Alina Sbirlea via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 30 13:11:13 PDT 2018
Author: asbirlea
Date: Mon Apr 30 13:11:13 2018
New Revision: 331222
URL: http://llvm.org/viewvc/llvm-project?rev=331222&view=rev
Log:
[ModRefInfo] Rename local variable IsMustAlias to avoid shadowing MustAlias enum entry.
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=331222&r1=331221&r2=331222&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/AliasAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/AliasAnalysis.cpp Mon Apr 30 13:11:13 2018
@@ -554,7 +554,7 @@ ModRefInfo AAResults::callCapturesBefore
unsigned ArgNo = 0;
ModRefInfo R = ModRefInfo::NoModRef;
- bool MustAlias = true;
+ bool IsMustAlias = true;
// Set flag only if no May found and all operands processed.
for (auto CI = CS.data_operands_begin(), CE = CS.data_operands_end();
CI != CE; ++CI, ++ArgNo) {
@@ -572,7 +572,7 @@ ModRefInfo AAResults::callCapturesBefore
// assume that the call could touch the pointer, even though it doesn't
// escape.
if (AR != MustAlias)
- MustAlias = false;
+ IsMustAlias = false;
if (AR == NoAlias)
continue;
if (CS.doesNotAccessMemory(ArgNo))
@@ -584,7 +584,7 @@ ModRefInfo AAResults::callCapturesBefore
// Not returning MustModRef since we have not seen all the arguments.
return ModRefInfo::ModRef;
}
- return MustAlias ? setMust(R) : clearMust(R);
+ return IsMustAlias ? setMust(R) : clearMust(R);
}
/// canBasicBlockModify - Return true if it is possible for execution of the
More information about the llvm-commits
mailing list