From 07ccb63a1b2c15c3acfd44c50ffa1663d7ed2965 Mon Sep 17 00:00:00 2001 From: Daniel Thornburgh Date: Mon, 28 Jul 2025 14:58:01 -0700 Subject: [PATCH] Remove unneeded assertion from AsmPrinter --- llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 79b98388c691..5f929f05c47b 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -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(),