aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-21 23:52:23 +0200
committerlemon <lsof@mailbox.org>2023-06-21 23:52:23 +0200
commit3f2221dfb9ab33b7ac44bbf822a78753a0357d25 (patch)
tree5828192184328e405da0489d72d1c71a4be70316 /common.h
parent995fd23ecd5de710a6f587d29af2874b1fb4756d (diff)
mem2reg: implement ssa construction; this breaks regalloc right now
Diffstat (limited to 'common.h')
-rw-r--r--common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.h b/common.h
index ecee563..319903e 100644
--- a/common.h
+++ b/common.h
@@ -393,7 +393,7 @@ int imap_set_(struct imapbase *, void **v, uint vsiz, short k);
(m)->mb.n = 0)
#define imap_get(m, k) (((m)->tmp = imap_get_(&(m)->mb, k)) < 0 ? NULL : &(m)->v[(m)->tmp])
#define imap_set(m, k, x) ((m)->tmp = imap_set_(&(m)->mb, (void **)&(m)->v, sizeof*(m)->v, k), \
- (m)->v[(m)->tmp] = (x))
+ (m)->v[(m)->tmp] = (x), &(m)->v[(m)->tmp])
struct pmapbase { void **k; uint n, N; };
/* map of non-null ptr -> T */