Skip to content

Commit daa1b60

Browse files
[MC] Remove a redundant cast (NFC) (#168013)
ISD.Symbol is already of type MCSymbolMachO *. Identified with readability-redundant-casting.
1 parent 4d42a0c commit daa1b60

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/MC/MachObjectWriter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,8 +570,7 @@ void MachObjectWriter::bindIndirectSymbols(MCAssembler &Asm) {
570570
//
571571
// FIXME: Do not hardcode.
572572
if (Asm.registerSymbol(*ISD.Symbol))
573-
static_cast<MCSymbolMachO *>(ISD.Symbol)
574-
->setReferenceTypeUndefinedLazy(true);
573+
ISD.Symbol->setReferenceTypeUndefinedLazy(true);
575574
}
576575
}
577576

0 commit comments

Comments
 (0)