diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-10-20 18:01:03 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-10-30 13:20:42 -0400 |
commit | 30f47d6ec1e45d1ee551e96e30893dadea3a9008 (patch) | |
tree | 57522af673851c5cf2e5250f3dbc0c53ed656752 | |
parent | bb5f95c192e1e03ecfe18bbe85b92a112bc7fd7a (diff) | |
download | roux-30f47d6ec1e45d1ee551e96e30893dadea3a9008.tar.gz |
fix bug in pretty printer
-rw-r--r-- | lisc/parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisc/parse.c b/lisc/parse.c index feb11a0..b5adca3 100644 --- a/lisc/parse.c +++ b/lisc/parse.c @@ -797,7 +797,7 @@ parse(FILE *f, void data(Dat *), void func(Fn *)) static void printref(Ref r, Fn *fn, FILE *f) { - switch (r.type) { + switch (rtype(r)) { case RTmp: if (r.val < Tmp0) fprintf(f, "R%d", r.val); |