diff --git a/takolib/src/codegen/backend/llvm.rs b/takolib/src/codegen/backend/llvm.rs index 05e6ef89..9c05af96 100644 --- a/takolib/src/codegen/backend/llvm.rs +++ b/takolib/src/codegen/backend/llvm.rs @@ -167,7 +167,7 @@ impl<'ctx> BackendStateTrait for LlvmState<'ctx> { } fn array_of_strings_type(&mut self) -> Self::PointerType { - self.char_ptr_type() + self.context.ptr_type(AddressSpace::default()) } fn const_int>(&mut self, ty: Self::IntType, value: T) -> Self::Value { // TODO: Check bounds.