Skip to content

Commit 2d9a9fe

Browse files
committed
SDLoc passed by const reference
1 parent d2e56f4 commit 2d9a9fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,8 @@ bool RISCVDAGToDAGISel::trySignedBitfieldInsertInSign(SDNode *Node) {
696696
if (!N0.hasOneUse())
697697
return false;
698698

699-
auto BitfieldInsert = [&](SDValue N0, unsigned Msb, unsigned Lsb, SDLoc DL,
700-
MVT VT) {
699+
auto BitfieldInsert = [&](SDValue N0, unsigned Msb, unsigned Lsb,
700+
const SDLoc &DL, MVT VT) {
701701
unsigned Opc = RISCV::NDS_BFOS;
702702
// If the Lsb is equal to the Msb, then the Lsb should be 0.
703703
if (Lsb == Msb)

0 commit comments

Comments
 (0)