From bfa200ebcf3706fde0dde335a3c1fa3fe1b3ba3f Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 13 May 2020 15:12:34 -0700 Subject: [PATCH] Remove an unused variable. --- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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!"); -- 2.7.4