[llvm] r347234 - [AMDGPU] Fix -Wunused-variable
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 19 09:54:27 PST 2018
Author: maskray
Date: Mon Nov 19 09:54:27 2018
New Revision: 347234
URL: http://llvm.org/viewvc/llvm-project?rev=347234&view=rev
Log:
[AMDGPU] Fix -Wunused-variable
Modified:
llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp?rev=347234&r1=347233&r2=347234&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp Mon Nov 19 09:54:27 2018
@@ -8140,7 +8140,6 @@ SITargetLowering::performInsertVectorElt
SDValue Ins = N->getOperand(1);
EVT IdxVT = Idx.getValueType();
- SDValue V;
SmallVector<SDValue, 16> Ops;
for (unsigned I = 0, E = VecVT.getVectorNumElements(); I < E; ++I) {
SDValue IC = DAG.getConstant(I, SL, IdxVT);
More information about the llvm-commits
mailing list