forked from M-Labs/nac3
redo "nac3artiq: fixed compilation error"
This reverts commit 3b5328d3cd
.
This commit is contained in:
parent
fa04768a77
commit
521f136f2e
|
@ -596,7 +596,7 @@ impl InnerResolver {
|
||||||
)?
|
)?
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
};
|
||||||
let ty = ctx.get_llvm_type(ty);
|
let ty = ctx.get_llvm_type(generator, ty);
|
||||||
let size_t = generator.get_size_type(ctx.ctx);
|
let size_t = generator.get_size_type(ctx.ctx);
|
||||||
let arr_ty = ctx.ctx.struct_type(
|
let arr_ty = ctx.ctx.struct_type(
|
||||||
&[ty.ptr_type(AddressSpace::Generic).into(), size_t.into()],
|
&[ty.ptr_type(AddressSpace::Generic).into(), size_t.into()],
|
||||||
|
@ -696,7 +696,7 @@ impl InnerResolver {
|
||||||
&ctx.top_level.definitions.read(),
|
&ctx.top_level.definitions.read(),
|
||||||
&ctx.primitives,
|
&ctx.primitives,
|
||||||
)
|
)
|
||||||
.map(|ty| ty.map(|ty| ctx.get_llvm_type(ty)))
|
.map(|ty| ty.map(|ty| ctx.get_llvm_type(generator, ty)))
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
let types = types?.unwrap();
|
let types = types?.unwrap();
|
||||||
|
@ -737,7 +737,7 @@ impl InnerResolver {
|
||||||
.get_obj_type(py, obj, &mut ctx.unifier, &top_level_defs, &ctx.primitives)?
|
.get_obj_type(py, obj, &mut ctx.unifier, &top_level_defs, &ctx.primitives)?
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let ty = ctx
|
let ty = ctx
|
||||||
.get_llvm_type(ty)
|
.get_llvm_type(generator, ty)
|
||||||
.into_pointer_type()
|
.into_pointer_type()
|
||||||
.get_element_type()
|
.get_element_type()
|
||||||
.into_struct_type()
|
.into_struct_type()
|
||||||
|
|
Loading…
Reference in New Issue