Skip to content

Commit

Permalink
Remove duplicate MemVT to fix shadow variable warning. NFCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Nov 9, 2019
1 parent 3fb832f commit dda8015
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion llvm/lib/Target/AMDGPU/R600ISelLowering.cpp
Expand Up @@ -1500,7 +1500,6 @@ SDValue R600TargetLowering::LowerLOAD(SDValue Op, SelectionDAG &DAG) const {
// buffer. However SEXT loads from other address spaces are not supported, so
// we need to expand them here.
if (LoadNode->getExtensionType() == ISD::SEXTLOAD) {
EVT MemVT = LoadNode->getMemoryVT();
assert(!MemVT.isVector() && (MemVT == MVT::i16 || MemVT == MVT::i8));
SDValue NewLoad = DAG.getExtLoad(
ISD::EXTLOAD, DL, VT, Chain, Ptr, LoadNode->getPointerInfo(), MemVT,
Expand Down

0 comments on commit dda8015

Please sign in to comment.