chore(dbg): pre-scan 与 _SlifeReset 之间补 p1d 探针(TEMP)

p1c 之后仍崩,最后一段只剩 pre-scan 与 _SlifeReset;p1d 把两者分开。
This commit is contained in:
TermiNexus committed 2026-10-09 11:30:33 +08:00
1 parent 054dcf0a0b
commit 95b076581a
1 file changed
+2
+2
View File
@@ -775,6 +775,8 @@ novirtual class FuncGenDef(CallGenBase.CallGenBase):
stmt: ast.AST* = body.get(bi)
if stmt is not None: self.Gen.StmtGenDecl.pre_scan_allocas(trans, stmt)
VLogger.info("TR.p1d.prescan.done", "TR")
# M3 owned slife(§4.2 函数级 scope guard):进入函数体前把登记区间起点抬到当前栈顶。
# 表是函数间共享的一段栈式区间,嵌套函数各自独立;退出时由 _SlifeRestore 弹回外层起点。
# 放在这里(而非更早)是因为上方存在多条提前返回分支(泛型模板/async/extern),