aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ssa.c2
-rw-r--r--ssa.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/ssa.c b/ssa.c
index e1c0e4c..86c7805 100644
--- a/ssa.c
+++ b/ssa.c
@@ -339,6 +339,8 @@ void ssa_generate(int quiet) {
cf->defs = defs;
cf->entry = entry;
cf->next = func_ir;
+ memmove(cf->blks, blks);
+ memmove(cf->ord, ord);
func_ir = cf;
gbbase += bcnt;
bcnt = 0;
diff --git a/ssa.h b/ssa.h
index 2ad86cd..92e2262 100644
--- a/ssa.h
+++ b/ssa.h
@@ -149,6 +149,8 @@ typedef struct CFuncIR CFuncIR;
typedef CFuncIR *CFuncIR_t;
struct CFuncIR {
int gbbase;
+ CBlock_t blks[MAX_BLOCK];
+ int ord[MAX_BLOCK];
CBlock_t entry;
COList_t defs;
CType_t func;