From 521f136f2e2031105f7696f8627b06ca1d2828c9 Mon Sep 17 00:00:00 2001 From: pca006132 Date: Mon, 27 Dec 2021 22:56:07 +0800 Subject: [PATCH] redo "nac3artiq: fixed compilation error" This reverts commit 3b5328d3cd6538dd63b1049f0be2eacd8cc32177. --- nac3artiq/src/symbol_resolver.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nac3artiq/src/symbol_resolver.rs b/nac3artiq/src/symbol_resolver.rs index 30386070..5fa703f4 100644 --- a/nac3artiq/src/symbol_resolver.rs +++ b/nac3artiq/src/symbol_resolver.rs @@ -596,7 +596,7 @@ impl InnerResolver { )? .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 arr_ty = ctx.ctx.struct_type( &[ty.ptr_type(AddressSpace::Generic).into(), size_t.into()], @@ -696,7 +696,7 @@ impl InnerResolver { &ctx.top_level.definitions.read(), &ctx.primitives, ) - .map(|ty| ty.map(|ty| ctx.get_llvm_type(ty))) + .map(|ty| ty.map(|ty| ctx.get_llvm_type(generator, ty))) }) .collect(); let types = types?.unwrap(); @@ -737,7 +737,7 @@ impl InnerResolver { .get_obj_type(py, obj, &mut ctx.unifier, &top_level_defs, &ctx.primitives)? .unwrap(); let ty = ctx - .get_llvm_type(ty) + .get_llvm_type(generator, ty) .into_pointer_type() .get_element_type() .into_struct_type()