Compare commits
9 Commits
3c0b5eb1b6
...
899c0d8cd3
Author | SHA1 | Date |
---|---|---|
|
899c0d8cd3 | |
|
49743995b3 | |
|
8bef0ab8f2 | |
|
806f65815f | |
|
2e6a64a1de | |
|
20aa094b1f | |
|
5ab8d751ed | |
|
c7d5d75014 | |
|
72570fbb16 |
|
@ -67,8 +67,7 @@ impl<'ctx, 'a> CodeGenContext<'ctx, 'a> {
|
||||||
index: &[IntValue<'ctx>],
|
index: &[IntValue<'ctx>],
|
||||||
name: Option<&str>,
|
name: Option<&str>,
|
||||||
) -> BasicValueEnum<'ctx> {
|
) -> BasicValueEnum<'ctx> {
|
||||||
let gep = unsafe { self.builder.build_gep(ptr, index, "") };
|
unsafe { self.builder.build_load(self.builder.build_gep(ptr, index, ""), name.unwrap_or_default()) }
|
||||||
self.builder.build_load(gep, name.unwrap_or_default())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_subst_key(
|
fn get_subst_key(
|
||||||
|
|
|
@ -13,10 +13,7 @@ use crate::{
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
use indoc::indoc;
|
use indoc::indoc;
|
||||||
use inkwell::{
|
use inkwell::OptimizationLevel;
|
||||||
targets::{InitializationConfig, Target},
|
|
||||||
OptimizationLevel
|
|
||||||
};
|
|
||||||
use nac3parser::{
|
use nac3parser::{
|
||||||
ast::{fold::Fold, StrRef},
|
ast::{fold::Fold, StrRef},
|
||||||
parser::parse_program,
|
parser::parse_program,
|
||||||
|
|
Loading…
Reference in New Issue