From 5073499b693d29195a707683bab6e0ebf97320eb Mon Sep 17 00:00:00 2001 From: David Green Date: Fri, 2 Sep 2022 12:35:15 +0100 Subject: [PATCH] [TypePromotionPass] Rename variable to avoid name conflict. NFC --- llvm/lib/CodeGen/TypePromotion.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/llvm/lib/CodeGen/TypePromotion.cpp b/llvm/lib/CodeGen/TypePromotion.cpp index 5ed2674f..058a180 100644 --- a/llvm/lib/CodeGen/TypePromotion.cpp +++ b/llvm/lib/CodeGen/TypePromotion.cpp @@ -857,18 +857,18 @@ bool TypePromotion::TryToPromote(Value *V, unsigned PromotedWidth) { unsigned ToPromote = 0; unsigned NonFreeArgs = 0; SmallPtrSet Blocks; - for (auto *V : CurrentVisited) { - if (auto *I = dyn_cast(V)) + for (auto *CV : CurrentVisited) { + if (auto *I = dyn_cast(CV)) Blocks.insert(I->getParent()); - if (Sources.count(V)) { - if (auto *Arg = dyn_cast(V)) + if (Sources.count(CV)) { + if (auto *Arg = dyn_cast(CV)) if (!Arg->hasZExtAttr() && !Arg->hasSExtAttr()) ++NonFreeArgs; continue; } - if (Sinks.count(cast(V))) + if (Sinks.count(cast(CV))) continue; ++ToPromote; } -- 2.7.4