This commit is contained in:
Folkert 2021-07-24 00:13:00 +02:00
parent 910cbb47c0
commit 59e551dd32
4 changed files with 2 additions and 6 deletions

View File

@ -3,8 +3,6 @@ const utils = @import("utils.zig");
const RocResult = utils.RocResult;
const mem = std.mem;
const TAG_WIDTH = 8;
const EqFn = fn (?[*]u8, ?[*]u8) callconv(.C) bool;
const CompareFn = fn (?[*]u8, ?[*]u8, ?[*]u8) callconv(.C) u8;
const Opaque = ?[*]u8;

View File

@ -2389,7 +2389,7 @@ pub fn build_exp_stmt<'a, 'ctx, 'env>(
let exception_object = scope.get(&exception_id.into_inner()).unwrap().1;
env.builder.build_resume(exception_object);
env.context.i64_type().const_zero().into()
env.ptr_int().const_zero().into()
}
Switch {

View File

@ -2106,8 +2106,6 @@ fn specialize_external<'a>(
let expr = Expr::UnionAtIndex {
tag_id,
structure: Symbol::ARG_CLOSURE,
// union at index still expects the index to be +1; it thinks
// the tag id is stored
index: index as u64,
union_layout,
};

View File

@ -656,7 +656,7 @@ impl<'a> Layout<'a> {
.max()
.unwrap_or_default()
// the size of the tag_id
+ pointer_size
+ variant.tag_id_builtin().stack_size(pointer_size)
}
Recursive(_)