mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-20 07:17:50 +03:00
cleanup
This commit is contained in:
parent
910cbb47c0
commit
59e551dd32
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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,
|
||||
};
|
||||
|
@ -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(_)
|
||||
|
Loading…
Reference in New Issue
Block a user