mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
prepare for llvm 15
This commit is contained in:
parent
ee87eafdca
commit
0072192897
13 changed files with 123 additions and 139 deletions
|
@ -4,7 +4,6 @@ use crate::llvm::build::{CCReturn, Env, FunctionSpec};
|
|||
use crate::llvm::convert::zig_str_type;
|
||||
use inkwell::module::Linkage;
|
||||
use inkwell::types::BasicType;
|
||||
use inkwell::values::BasicValue;
|
||||
use inkwell::AddressSpace;
|
||||
use roc_builtins::bitcode;
|
||||
|
||||
|
@ -19,7 +18,7 @@ pub fn add_default_roc_externs(env: &Env<'_, '_, '_>) {
|
|||
let builder = env.builder;
|
||||
|
||||
let usize_type = env.ptr_int();
|
||||
let i8_ptr_type = ctx.i8_type().ptr_type(AddressSpace::Generic);
|
||||
let i8_ptr_type = ctx.i8_type().ptr_type(AddressSpace::default());
|
||||
|
||||
match env.mode {
|
||||
super::build::LlvmBackendMode::CliTest => {
|
||||
|
@ -271,7 +270,7 @@ pub fn build_longjmp_call(env: &Env) {
|
|||
// Call the LLVM-intrinsic longjmp: `void @llvm.eh.sjlj.longjmp(i8* %setjmp_buf)`
|
||||
let jmp_buf_i8p = env.builder.build_pointer_cast(
|
||||
jmp_buf,
|
||||
env.context.i8_type().ptr_type(AddressSpace::Generic),
|
||||
env.context.i8_type().ptr_type(AddressSpace::default()),
|
||||
"jmp_buf i8*",
|
||||
);
|
||||
let _call = env.build_intrinsic_call(LLVM_LONGJMP, &[jmp_buf_i8p.into()]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue