fix(llvm): Phase 131-10 - Smart console.log routing(Segfault修正)
## 問題 - Integer値をi8*ポインタに変換 → Segfault(Exit 139) ## 解決策 - String literal → nyash.console.log(i8*) - Integer/Handle → nyash.console.log_handle(i64) ## 結果 - Case B (loop_min_while): LLVM outputs `0,1,2` ✅ - VM/LLVM完全パリティ達成 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@ -1,5 +1,12 @@
|
||||
# Phase 131-6: Next Steps - PHI Bug Fix
|
||||
|
||||
## Update (Phase 131-10)
|
||||
|
||||
Phase 131-6 時点では PHI wiring を主因として疑っていたが、実際には multi-pass lowering の値伝播・ExternCall の引数解決/ABI ルーティング・PHI 型推論など複数の要因が重なっていた。
|
||||
|
||||
最終的に Case B は解決済み(LLVM AOT で `0,1,2` を出して終了)。到達点と修正の全体像は次を SSOT とする:
|
||||
- `docs/development/current/main/phase131-3-llvm-lowering-inventory.md`
|
||||
|
||||
## Summary
|
||||
|
||||
**Problem**: LLVM backend generates infinite loop for `loop_min_while.hako`
|
||||
|
||||
Reference in New Issue
Block a user