fix: implements null pointer checks

This commit is contained in:
Jonny
2025-02-27 23:57:42 +00:00
parent 1b2df507ba
commit edcac2782b
3 changed files with 6 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ object RuntimeError {
def generateHandler: Chain[AsmLine] = Chain(
LabelDef(OutOfBoundsError.errLabel),
Pop(RSI), // le index
Pop(RSI),
stackAlign,
Load(RDI, IndexAddress(RIP, LabelArg(OutOfBoundsError.strLabel))),
assemblyIR.Call(CLibFunc.PrintF),