feat: outofboundserror message includes given bad value
This commit is contained in:
@@ -108,7 +108,7 @@ object RuntimeError {
|
||||
|
||||
def generateHandler: Chain[AsmLine] = Chain(
|
||||
LabelDef(OutOfBoundsError.errLabel),
|
||||
Pop(RSI),
|
||||
Move(RSI, Register(Q64, CX)),
|
||||
stackAlign,
|
||||
Load(RDI, IndexAddress(RIP, LabelArg(OutOfBoundsError.strLabel))),
|
||||
assemblyIR.Call(CLibFunc.PrintF),
|
||||
|
||||
Reference in New Issue
Block a user