feat: fasm stack codegen beta

This commit is contained in:
2026-01-05 19:36:48 +01:00
parent 2312129148
commit 806e20d9b1
4 changed files with 150 additions and 1 deletions

View File

@@ -56,7 +56,7 @@ namespace IR
argRegs.Push(arg);
}
// TODO: gather return type of the function
auto dst = AllocateNamed<Instruction>(new ValueHandle::Type {ValueHandle::Type::Kind::Void});
auto dst = AllocateNamed<Instruction>(new ValueHandle::Type {ValueHandle::Type::Kind::Int});
m_ops->Push(new CallOp(dst, fn->name(), argRegs.view()));
return dst;
}