commit f5007126f3140a8c932d393c5b217308b80bd46a
parent a70aa044ded9402ec107920e97aea3cfdc4f5964
Author: Quentin Carbonneaux <quentin@c9x.me>
Date: Sun, 20 Nov 2022 22:13:26 +0100
export getalias()
We will be using it in the new
coalesce() pass.
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/alias.c b/alias.c
@@ -1,6 +1,6 @@
#include "all.h"
-static void
+void
getalias(Alias *a, Ref r, Fn *fn)
{
Con *c;
diff --git a/all.h b/all.h
@@ -518,6 +518,7 @@ void memopt(Fn *);
/* alias.c */
void fillalias(Fn *);
+void getalias(Alias *, Ref, Fn *);
int alias(Ref, int, Ref, int, int *, Fn *);
int escapes(Ref, Fn *);