llvm(smoke): make PHI hygiene robust; sanitize empty PHI via env; adjust tests to statement-if; allow non-zero exit; compute empty PHI safely

This commit is contained in:
Selfhosting Dev
2025-09-20 05:21:09 +09:00
parent ff929aac5b
commit 14122c1e55
5 changed files with 20 additions and 16 deletions

View File

@ -416,6 +416,8 @@ impl super::macro_box::MacroBox for NyChildMacroBox {
Err(e) => { eprintln!("[macro-proxy] wait error: {}", e); if strict_enabled() { std::process::exit(2); } return ast.clone(); }
}
}
// Touch once to avoid unused_assignments warning on success-only paths
let _code_peek = status_opt.as_ref().and_then(|s| s.code());
// Capture stderr for diagnostics
let mut err = String::new();
if let Some(mut se) = child.stderr.take() { use std::io::Read; let _ = se.read_to_string(&mut err); }