MIR builder (modularized): fix Call emission to new schema; switch AwaitExpression; drop legacy Array* cases. Tests: fix optimizer test get_block signature. Interpreter: annotate unreachable legacy constructor path in execute_new().
This commit is contained in:
@ -511,7 +511,7 @@ mod tests {
|
||||
|
||||
// Ensure TypeOp remains in bb0
|
||||
let f = module.get_function("main").unwrap();
|
||||
let block = f.get_block(&bb0).unwrap();
|
||||
let block = f.get_block(bb0).unwrap();
|
||||
let has_typeop = block.all_instructions().any(|i| matches!(i, MirInstruction::TypeOp { .. }));
|
||||
assert!(has_typeop, "TypeOp should not be dropped by DCE when used by print");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user