Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
Cyrill Leutwiler
2025-07-02 21:22:02 +02:00
parent d40ef3e462
commit 63011b6d24
2 changed files with 4 additions and 6 deletions
@@ -310,7 +310,7 @@ impl<'ctx> Function<'ctx> {
Default::default(),
unsafe {
context.builder().build_gep(
context.word_type(),
context.word_type().array_type(0),
self.stack_variables().as_pointer_value(),
&[
context.xlen_type().const_zero(),
@@ -99,17 +99,16 @@ where
mut self,
context: &mut revive_llvm_context::PolkaVMContext<'ctx, D>,
) -> anyhow::Result<()> {
let pointers: Vec<revive_llvm_context::PolkaVMPointer<'ctx>> = self
let _pointers: Vec<revive_llvm_context::PolkaVMPointer<'ctx>> = self
.bindings
.into_iter()
.iter()
.map(|binding| {
context
.current_function()
.borrow_mut()
.stack_variable_pointer(binding.inner, context)
.stack_variable_pointer(binding.inner.to_string(), context)
})
.collect();
/*
if self.bindings.len() == 1 {
let identifier = self.bindings.remove(0);
context.set_debug_location(self.location.line, 0, None)?;
@@ -224,7 +223,6 @@ where
})?;
context.build_store(pointer, value)?;
}
*/
Ok(())
}