Skip to content

Commit 3520505

Browse files
committed
Remove unneeded assertion from AsmPrinter
1 parent 1c8e128 commit 3520505

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1943,9 +1943,6 @@ void AsmPrinter::emitFunctionBody() {
19431943
MCSymbol *Sym = OutContext.createTempSymbol("reloc_none");
19441944
OutStreamer->emitLabel(Sym);
19451945
const MCExpr *Dot = MCSymbolRefExpr::create(Sym, OutContext);
1946-
1947-
assert(MI.getNumOperands() == 1 &&
1948-
"RELOC_NONE can only have one operand");
19491946
const MCExpr *Value = MCSymbolRefExpr::create(
19501947
getSymbol(MI.getOperand(0).getGlobal()), OutContext);
19511948
OutStreamer->emitRelocDirective(*Dot, "BFD_RELOC_NONE", Value, SMLoc(),

0 commit comments

Comments
 (0)