Commit out adding records for now

This commit is contained in:
Sofia 2025-07-19 13:29:05 +03:00
parent a5bca6be82
commit 94fbd51d35

View File

@ -413,7 +413,7 @@ impl mir::Statement {
match &self.0 { match &self.0 {
mir::StmtKind::Let(NamedVariableRef(ty, name, _), mutable, expression) => { mir::StmtKind::Let(NamedVariableRef(ty, name, _), mutable, expression) => {
let value = expression.codegen(scope, &state).unwrap(); let value = expression.codegen(scope, &state).unwrap();
let (stack_value, store) = match mutable { let (stack_value, _) = match mutable {
false => (StackValueKind::Immutable(value), value), false => (StackValueKind::Immutable(value), value),
true => match ty { true => match ty {
// Struct is already allocated at initialization // Struct is already allocated at initialization
@ -464,16 +464,16 @@ impl mir::Statement {
flags: DwarfFlags, flags: DwarfFlags,
}), }),
); );
dbg!(&store); // dbg!(&store);
store.add_record( // store.add_record(
&mut scope.block, // &mut scope.block,
InstructionDebugRecordData { // InstructionDebugRecordData {
variable: var, // variable: var,
location, // location,
kind: DebugRecordKind::Declare(value), // kind: DebugRecordKind::Declare(value),
scope: debug.scope, // scope: debug.scope,
}, // },
); // );
} }
StackValueKind::Any(_) => {} StackValueKind::Any(_) => {}
} }