Fix unused variable warning. NFCI.

llvm-svn: 348649
This commit is contained in:
Simon Pilgrim 2018-12-07 21:44:25 +00:00
parent 7ce5edf1ea
commit 44dfd81d01
1 changed files with 2 additions and 2 deletions

View File

@ -4873,9 +4873,9 @@ SDValue SITargetLowering::lowerSBuffer(EVT VT, SDLoc DL, SDValue Rsrc,
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) {