[llvm] r370332 - Fix shadow variable warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 29 04:16:32 PDT 2019
Author: rksimon
Date: Thu Aug 29 04:16:32 2019
New Revision: 370332
URL: http://llvm.org/viewvc/llvm-project?rev=370332&view=rev
Log:
Fix shadow variable warning. NFCI.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp?rev=370332&r1=370331&r2=370332&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Thu Aug 29 04:16:32 2019
@@ -904,11 +904,10 @@ void SelectionDAGLegalize::LegalizeLoadO
if (SrcVT.getScalarType() == MVT::f16) {
EVT ISrcVT = SrcVT.changeTypeToInteger();
EVT IDestVT = DestVT.changeTypeToInteger();
- EVT LoadVT = TLI.getRegisterType(IDestVT.getSimpleVT());
+ EVT ILoadVT = TLI.getRegisterType(IDestVT.getSimpleVT());
- SDValue Result = DAG.getExtLoad(ISD::ZEXTLOAD, dl, LoadVT,
- Chain, Ptr, ISrcVT,
- LD->getMemOperand());
+ SDValue Result = DAG.getExtLoad(ISD::ZEXTLOAD, dl, ILoadVT, Chain,
+ Ptr, ISrcVT, LD->getMemOperand());
Value = DAG.getNode(ISD::FP16_TO_FP, dl, DestVT, Result);
Chain = Result.getValue(1);
break;
More information about the llvm-commits
mailing list