Remove unneeded assertion from AsmPrinter

This commit is contained in:
Daniel Thornburgh 2025-07-28 14:58:01 -07:00
parent dd58f21c9e
commit 07ccb63a1b

View File

@ -2044,9 +2044,6 @@ void AsmPrinter::emitFunctionBody() {
MCSymbol *Sym = OutContext.createTempSymbol("reloc_none");
OutStreamer->emitLabel(Sym);
const MCExpr *Dot = MCSymbolRefExpr::create(Sym, OutContext);
assert(MI.getNumOperands() == 1 &&
"RELOC_NONE can only have one operand");
const MCExpr *Value = MCSymbolRefExpr::create(
getSymbol(MI.getOperand(0).getGlobal()), OutContext);
OutStreamer->emitRelocDirective(*Dot, "BFD_RELOC_NONE", Value, SMLoc(),