Skip to content

Commit e98b8cb

Browse files
[MIRParser] Remove an unnecessary cast (NFC) (#152835)
peekDebugInstrNum() already returns unsigned.
1 parent 7a6c981 commit e98b8cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/MIRParser/MIRParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ void MIRParserImpl::setupDebugValueTracking(
529529
unsigned MaxInstrNum = 0;
530530
for (auto &MBB : MF)
531531
for (auto &MI : MBB)
532-
MaxInstrNum = std::max((unsigned)MI.peekDebugInstrNum(), MaxInstrNum);
532+
MaxInstrNum = std::max(MI.peekDebugInstrNum(), MaxInstrNum);
533533
MF.setDebugInstrNumberingCount(MaxInstrNum);
534534

535535
// Load any substitutions.

0 commit comments

Comments
 (0)