aboutsummaryrefslogtreecommitdiff
path: root/include/ssa
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-03-29 20:49:29 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commit6927b6338b9655974db79c429e6ffc73037ab5e0 (patch)
tree269b4a096fcd38432fc709a72b6e872334652403 /include/ssa
parentfe9971d379766a4f7d4576495caff9ffaa80cfef (diff)
Fix ssa call, use correct tokenizer in error
Diffstat (limited to 'include/ssa')
-rw-r--r--include/ssa/ssa.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/ssa/ssa.h b/include/ssa/ssa.h
index c374ffb..16ceb25 100644
--- a/include/ssa/ssa.h
+++ b/include/ssa/ssa.h
@@ -38,7 +38,7 @@ typedef struct {
typedef u16 SsaRegister;
typedef u16 SsaIntermediateIndex;
typedef u16 SsaStringIndex;
-typedef u32 SsaFuncIndex;
+typedef usize SsaFuncIndex;
typedef struct {
Buffer/*instruction data*/ instructions;
@@ -63,12 +63,11 @@ CHECK_RESULT int ssa_ins_binop(Ssa *self, SsaInstructionType binop_type, SsaRegi
CHECK_RESULT int ssa_ins_func_start(Ssa *self, u8 num_args, SsaFuncIndex *result);
CHECK_RESULT int ssa_ins_func_end(Ssa *self);
CHECK_RESULT int ssa_ins_push(Ssa *self, SsaRegister reg);
-CHECK_RESULT int ssa_ins_call(Ssa *self, SsaFuncIndex func, SsaRegister *result);
+CHECK_RESULT int ssa_ins_call(Ssa *self, void *func, SsaRegister *result);
typedef struct {
jmp_buf env;
- Parser *parser;
Ssa ssa;
} SsaCompilerContext;