Skip to content

Commit 932c524

Browse files
committed
[CodeGen] Fix warning after #115531
1 parent 3e11ae6 commit 932c524

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/MachineOperand.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,8 +909,8 @@ void MachineOperand::print(raw_ostream &OS, ModuleSlotTracker &MST,
909909
OS << printJumpTableEntryReference(getIndex());
910910
break;
911911
case MachineOperand::MO_GlobalAddress:
912-
if (const auto *GV = getGlobal())
913-
getGlobal()->printAsOperand(OS, /*PrintType=*/false, MST);
912+
if (auto *GV = getGlobal())
913+
GV->printAsOperand(OS, /*PrintType=*/false, MST);
914914
else // Invalid, but may appear in debugging scenarios.
915915
OS << "globaladdress(null)";
916916

0 commit comments

Comments
 (0)