summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlina Sbirlea <asbirlea@google.com>2018-04-30 20:11:13 +0000
committerAlina Sbirlea <asbirlea@google.com>2018-04-30 20:11:13 +0000
commit020363edccb786c858e6dae1604ca9c6d95678b1 (patch)
treef41126130f9742df498391fc6334c5da3fa341a8
parent3df8844b9252d47ebac85fa380bccd48d80733ae (diff)
downloadbcm5719-llvm-020363edccb786c858e6dae1604ca9c6d95678b1.tar.gz
bcm5719-llvm-020363edccb786c858e6dae1604ca9c6d95678b1.zip
[ModRefInfo] Rename local variable IsMustAlias to avoid shadowing MustAlias enum entry.
llvm-svn: 331222
-rw-r--r--llvm/lib/Analysis/AliasAnalysis.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/AliasAnalysis.cpp b/llvm/lib/Analysis/AliasAnalysis.cpp
index 5f9fdb060e4..2e77c2f19a1 100644
--- a/llvm/lib/Analysis/AliasAnalysis.cpp
+++ b/llvm/lib/Analysis/AliasAnalysis.cpp
@@ -554,7 +554,7 @@ ModRefInfo AAResults::callCapturesBefore(const Instruction *I,
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(const Instruction *I,
// 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(const Instruction *I,
// 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
OpenPOWER on IntegriCloud