aboutsummaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <[email protected]>2022-11-20 21:36:51 +0100
committerQuentin Carbonneaux <[email protected]>2022-11-20 21:44:25 +0100
commit1f696fed0dd9f9019209f3f8178f599d1e25c782 (patch)
tree38fc007b260d360a7ab41da693fd8c60bafb1572 /load.c
parent0d50ebaed94f595961d88544a028bf7f523d3eac (diff)
make Alias.base an int
We had the invariant that it'd always be a temporary.
Diffstat (limited to 'load.c')
-rw-r--r--load.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/load.c b/load.c
index 5a96d35..01718c0 100644
--- a/load.c
+++ b/load.c
@@ -144,7 +144,7 @@ load(Slice sl, bits msk, Loc *l)
case ALoc:
case AEsc:
case AUnk:
- r = a->base;
+ r = TMP(a->base);
if (!a->offset)
break;
r1 = getcon(a->offset, curf);
@@ -178,7 +178,7 @@ killsl(Ref r, Slice sl)
default: die("unreachable");
case ALoc:
case AEsc:
- case AUnk: return req(a->base, r);
+ case AUnk: return req(TMP(a->base), r);
case ACon:
case ASym: return 0;
}