feat: at least it compiles, right?
This commit is contained in:
@@ -10,7 +10,7 @@ use inkwell::values::{BasicValueEnum, FunctionValue};
|
||||
use crate::env::VmEnv;
|
||||
use crate::eval::Engine;
|
||||
|
||||
use super::{JITContext, JITValue, ValueTag, JITValueData};
|
||||
use super::{JITContext, JITValue, JITValueData, ValueTag};
|
||||
|
||||
pub struct Helpers<'ctx> {
|
||||
pub int_type: IntType<'ctx>,
|
||||
@@ -341,9 +341,7 @@ extern "C" fn helper_arg(idx: usize, env: *const VmEnv) -> JITValue {
|
||||
}
|
||||
|
||||
extern "C" fn helper_lookup_let(level: usize, idx: usize, env: *const VmEnv) -> JITValue {
|
||||
let env = unsafe { env.as_ref() }.unwrap();
|
||||
let val: JITValue = env.lookup_let(level, idx).clone().into();
|
||||
val
|
||||
todo!()
|
||||
}
|
||||
|
||||
extern "C" fn helper_lookup(sym: usize, env: *const VmEnv) -> JITValue {
|
||||
|
||||
Reference in New Issue
Block a user