From 020363edccb786c858e6dae1604ca9c6d95678b1 Mon Sep 17 00:00:00 2001 From: Alina Sbirlea Date: Mon, 30 Apr 2018 20:11:13 +0000 Subject: [ModRefInfo] Rename local variable IsMustAlias to avoid shadowing MustAlias enum entry. llvm-svn: 331222 --- llvm/lib/Analysis/AliasAnalysis.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Analysis/AliasAnalysis.cpp') 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 -- cgit v1.2.3