Skip to content

Commit

Permalink
Testing with llvm13
Browse files Browse the repository at this point in the history
  • Loading branch information
Cypher1 committed Apr 15, 2024
1 parent b7a7a9f commit 8940f14
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions takolib/src/codegen/backend/llvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ impl<'ctx> BackendStateTrait for LlvmState<'ctx> {
}

fn array_of_strings_type(&mut self) -> Self::PointerType {
let char_star_type = self.char_ptr_type();
Context::ptr_type
self.char_ptr_type()
}
fn const_int<T: Into<u64>>(&mut self, ty: Self::IntType, value: T) -> Self::Value {
// TODO: Check bounds.
Expand Down Expand Up @@ -200,7 +199,7 @@ impl<'ctx> BackendStateTrait for LlvmState<'ctx> {
}

fn char_ptr_type(&mut self) -> Self::PointerType {
Context::ptr_type
self.context.ptr_type(AddressSpace::default())
}

fn global_string(&mut self, value: &str) -> Self::PointerValue {
Expand Down

0 comments on commit 8940f14

Please sign in to comment.