Skip to content

Commit 03f7ba8

Browse files
Cleanup use of DL
1 parent b31dfc1 commit 03f7ba8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2315,10 +2315,10 @@ NVPTXTargetLowering::LowerCONCAT_VECTORS(SDValue Op, SelectionDAG &DAG) const {
23152315
// mov.b32 %r2, 0x40003C00
23162316
SDValue NVPTXTargetLowering::LowerBUILD_VECTOR(SDValue Op,
23172317
SelectionDAG &DAG) const {
2318-
SDLoc DL(Op);
23192318
EVT VT = Op->getValueType(0);
23202319
if (!(Isv2x16VT(VT) || VT == MVT::v4i8))
23212320
return Op;
2321+
SDLoc DL(Op);
23222322

23232323
if (!llvm::all_of(Op->ops(), [](SDValue Operand) {
23242324
return Operand->isUndef() || isa<ConstantSDNode>(Operand) ||
@@ -2375,8 +2375,8 @@ SDValue NVPTXTargetLowering::LowerBUILD_VECTOR(SDValue Op,
23752375
} else {
23762376
llvm_unreachable("Unsupported type");
23772377
}
2378-
SDValue Const = DAG.getConstant(Value, SDLoc(Op), MVT::i32);
2379-
return DAG.getNode(ISD::BITCAST, SDLoc(Op), Op->getValueType(0), Const);
2378+
SDValue Const = DAG.getConstant(Value, DL, MVT::i32);
2379+
return DAG.getNode(ISD::BITCAST, DL, Op->getValueType(0), Const);
23802380
}
23812381

23822382
SDValue NVPTXTargetLowering::LowerEXTRACT_VECTOR_ELT(SDValue Op,

0 commit comments

Comments
 (0)