Skip to content

Commit 40df608

Browse files
[MC] Remove a redundant cast (NFC)
Symbol is already of type MCSymbolELF *. Identified with readability-redundant-casting.
1 parent 67c8e38 commit 40df608

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/MC/MCELFStreamer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,7 @@ void MCELFStreamer::emitCommonSymbol(MCSymbol *S, uint64_t Size,
271271
" redeclared as different type");
272272
}
273273

274-
static_cast<MCSymbolELF *>(Symbol)->setSize(
275-
MCConstantExpr::create(Size, getContext()));
274+
Symbol->setSize(MCConstantExpr::create(Size, getContext()));
276275
}
277276

278277
void MCELFStreamer::emitELFSize(MCSymbol *Symbol, const MCExpr *Value) {

0 commit comments

Comments
 (0)