Skip to content

Commit

Permalink
[EVM] Update assert in EVMStackifyCodeEmitter::CodeEmitter::emitSymbol
Browse files Browse the repository at this point in the history
Update assert to reflect support for libraries.

Signed-off-by: Vladimir Radosavljevic <[email protected]>
  • Loading branch information
vladimirradosavljevic authored and PavelKopyl committed Jan 28, 2025
1 parent 7eeb672 commit fd6194b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Target/EVM/EVMStackifyCodeEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ void EVMStackifyCodeEmitter::CodeEmitter::emitConstant(uint64_t Val) {
void EVMStackifyCodeEmitter::CodeEmitter::emitSymbol(const MachineInstr *MI,
MCSymbol *Symbol) {
unsigned Opc = MI->getOpcode();
assert(Opc == EVM::DATASIZE ||
Opc == EVM::DATAOFFSET && "Unexpected symbol instruction");
assert(Opc == EVM::DATASIZE || Opc == EVM::DATAOFFSET ||
Opc == EVM::LINKERSYMBOL && "Unexpected symbol instruction");
StackHeight += 1;
// This is codegen-only instruction, that will be converted into PUSH4.
auto NewMI = BuildMI(*CurMBB, CurMBB->end(), MI->getDebugLoc(),
Expand Down

0 comments on commit fd6194b

Please sign in to comment.