commit 32cb8d315afae78dfe35ce57512b7015a0cb0fb4
parent 186e68a8d33e65884e122222e7f14f64492143c1
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Mon, 20 Jul 2015 17:53:32 -0400
define curi as a global too
Diffstat:
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/lisc/isel.c b/lisc/isel.c
@@ -19,8 +19,7 @@
* ABI)
*/
-extern Ins insb[NIns]; /* shared work buffer */
-static Ins *curi;
+extern Ins insb[NIns], *curi; /* shared work buffer */
static void
emit(short op, Ref to, Ref arg0, Ref arg1)
diff --git a/lisc/parse.c b/lisc/parse.c
@@ -9,7 +9,7 @@ enum {
NSym = 256,
};
-Ins insb[NIns];
+Ins insb[NIns], *curi;
OpDesc opdesc[OLast] = {
[OAdd] = { 2, 1, "add" },
@@ -62,7 +62,6 @@ static int lnum;
static Sym sym[NSym];
static int ntmp;
static Phi **plink;
-static Ins *curi;
static Blk *bmap[NBlk+1];
static Blk *curb;
static Blk **blink;