Skip to content

Commit 544286a

Browse files
committed
Pass SDLoc by const reference
1 parent 4be2bcc commit 544286a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7408,8 +7408,8 @@ static SDValue getTargetNode(JumpTableSDNode *N, const SDLoc &DL, EVT Ty,
74087408
return DAG.getTargetJumpTable(N->getIndex(), Ty, Flags);
74097409
}
74107410

7411-
static SDValue getLargeGlobalAddress(GlobalAddressSDNode *N, SDLoc DL, EVT Ty,
7412-
SelectionDAG &DAG) {
7411+
static SDValue getLargeGlobalAddress(GlobalAddressSDNode *N, const SDLoc &DL,
7412+
EVT Ty, SelectionDAG &DAG) {
74137413
RISCVConstantPoolValue *CPV = RISCVConstantPoolValue::Create(N->getGlobal());
74147414
SDValue CPAddr = DAG.getTargetConstantPool(CPV, Ty, Align(8));
74157415
SDValue LC = DAG.getNode(RISCVISD::LLA, DL, Ty, CPAddr);
@@ -7418,8 +7418,8 @@ static SDValue getLargeGlobalAddress(GlobalAddressSDNode *N, SDLoc DL, EVT Ty,
74187418
MachinePointerInfo::getConstantPool(DAG.getMachineFunction()));
74197419
}
74207420

7421-
static SDValue getLargeExternalSymbol(ExternalSymbolSDNode *N, SDLoc DL, EVT Ty,
7422-
SelectionDAG &DAG) {
7421+
static SDValue getLargeExternalSymbol(ExternalSymbolSDNode *N, const SDLoc &DL,
7422+
EVT Ty, SelectionDAG &DAG) {
74237423
RISCVConstantPoolValue *CPV =
74247424
RISCVConstantPoolValue::Create(*DAG.getContext(), N->getSymbol());
74257425
SDValue CPAddr = DAG.getTargetConstantPool(CPV, Ty, Align(8));

0 commit comments

Comments
 (0)