From: Eric Christopher Date: Wed, 13 May 2020 22:12:34 +0000 (-0700) Subject: Remove an unused variable. X-Git-Tag: llvmorg-12-init~6130 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bfa200ebcf3706fde0dde335a3c1fa3fe1b3ba3f;p=platform%2Fupstream%2Fllvm.git Remove an unused variable. --- diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 4e10d6b..43b4393 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -5665,7 +5665,6 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT, // Inserting undef into undef is still undef. if (N1.isUndef() && N2.isUndef()) return getUNDEF(VT); - SDValue Index = N3; assert(VT.isVector() && N1.getValueType().isVector() && N2.getValueType().isVector() && "Insert subvector VTs must be a vectors"); @@ -5673,10 +5672,10 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT, "Dest and insert subvector source types must match!"); assert(N2.getSimpleValueType() <= N1.getSimpleValueType() && "Insert subvector must be from smaller vector to larger vector!"); - assert(isa(Index) && + assert(isa(N3) && "Insert subvector index must be constant"); assert(N2.getValueType().getVectorNumElements() + - cast(Index)->getZExtValue() <= + cast(N3)->getZExtValue() <= VT.getVectorNumElements() && "Insert subvector overflow!");