aboutsummaryrefslogtreecommitdiff
path: root/src/type.cff
diff options
context:
space:
mode:
Diffstat (limited to 'src/type.cff')
-rw-r--r--src/type.cff4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/type.cff b/src/type.cff
index 3feb14c..d93548a 100644
--- a/src/type.cff
+++ b/src/type.cff
@@ -307,8 +307,8 @@ extern fn typeof2(a *const Type, b *const Type) *const Type {
return #null;
}
-extern fn types_to_llvm() void {
+extern fn visittypes(proc *fn(*const Type, *void) void, arg *void) void {
set_each(ty, types_set) {
- llvm_addtype(ty);
+ proc(ty, arg);
}
}