Skip to content

Commit 94e0c46

Browse files
[RISCV] Remove an unnecessary cast (NFC) (#156600)
*MF is already non const.
1 parent d77aafb commit 94e0c46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,8 +1158,8 @@ bool RISCVInstructionSelector::selectAddr(MachineInstr &MI,
11581158

11591159
switch (TM.getCodeModel()) {
11601160
default: {
1161-
reportGISelFailure(const_cast<MachineFunction &>(*MF), *TPC, *MORE,
1162-
getName(), "Unsupported code model for lowering", MI);
1161+
reportGISelFailure(*MF, *TPC, *MORE, getName(),
1162+
"Unsupported code model for lowering", MI);
11631163
return false;
11641164
}
11651165
case CodeModel::Small: {

0 commit comments

Comments
 (0)