From: Benjamin Kramer Date: Fri, 19 Feb 2021 17:11:39 +0000 (+0100) Subject: [LV] Fold single-use variable into assert. NFC. X-Git-Tag: llvmorg-14-init~14599 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=59f442e6bb7314d8efad1a8e7d9c84f29a873be6;p=platform%2Fupstream%2Fllvm.git [LV] Fold single-use variable into assert. NFC. --- diff --git a/llvm/lib/Transforms/Vectorize/VPlan.cpp b/llvm/lib/Transforms/Vectorize/VPlan.cpp index 50edd32e293e..973f165359dd 100644 --- a/llvm/lib/Transforms/Vectorize/VPlan.cpp +++ b/llvm/lib/Transforms/Vectorize/VPlan.cpp @@ -298,8 +298,8 @@ void VPBasicBlock::execute(VPTransformState *State) { VPValue *CBV; if (EnableVPlanNativePath && (CBV = getCondBit())) { - Value *IRCBV = CBV->getUnderlyingValue(); - assert(IRCBV && "Unexpected null underlying value for condition bit"); + assert(CBV->getUnderlyingValue() && + "Unexpected null underlying value for condition bit"); // Condition bit value in a VPBasicBlock is used as the branch selector. In // the VPlan-native path case, since all branches are uniform we generate a