[llvm] r348649 - Fix unused variable warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 7 13:44:25 PST 2018
Author: rksimon
Date: Fri Dec 7 13:44:25 2018
New Revision: 348649
URL: http://llvm.org/viewvc/llvm-project?rev=348649&view=rev
Log:
Fix unused variable warning. NFCI.
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=348649&r1=348648&r2=348649&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp Fri Dec 7 13:44:25 2018
@@ -4873,9 +4873,9 @@ SDValue SITargetLowering::lowerSBuffer(E
SmallVector<SDValue, 4> Loads;
unsigned NumLoads = 1;
MVT LoadVT = VT.getSimpleVT();
- MVT EltVT = LoadVT.isVector() ? LoadVT.getVectorElementType() : LoadVT;
unsigned NumElts = LoadVT.isVector() ? LoadVT.getVectorNumElements() : 1;
- assert((EltVT == MVT::i32 || EltVT == MVT::f32) &&
+ assert((LoadVT.getScalarType() == MVT::i32 ||
+ LoadVT.getScalarType() == MVT::f32) &&
isPowerOf2_32(NumElts));
if (NumElts == 8 || NumElts == 16) {
More information about the llvm-commits
mailing list