Commit 0d1851d
committed
W25 Step B-77a-fix: add canonical includes missing post-extern-delete
Per testkeeper [chat L<this>] x86_64 BUILD FAIL on 47f3170: 5 compile
errors due to missing canonical includes. Function-scoped externs
deleted in 77a but the parent files didn't all have canonical includes
that cover the deleted-extern function declarations.
ROOT CAUSE: my 77a deletion missed adding includes for 3 TUs.
pass_output_type_c.c: had hir_c_api.h but not hir_cfg_rpo_c.h
(hir_cfg_get_rpo_c lives in hir_cfg_rpo_c.h, separate file pair).
refcount_insertion.cpp: had no canonical include for
hir_cfg_split_critical_edges_c (just promoted to hir_c_api.h in 77a).
refcount_env_bridge.cpp: had no hir_c_api.h or hir_cfg_rpo_c.h
(needed for hir_cfg_get_rpo + hir_instr_is_deopt_base + hir_cfg_get_rpo_c).
CHANGES (+5/0):
pass_output_type_c.c: + #include "cinderx/Jit/hir/hir_cfg_rpo_c.h"
refcount_insertion.cpp: + #include "cinderx/Jit/hir/hir_c_api.h"
refcount_env_bridge.cpp: + 2 includes (hir_c_api.h + hir_cfg_rpo_c.h)
VERIFICATION (per CLAUDE.md item (6) script-driven counts):
Lint pattern still 0 violators (extern deletes survived).
Compile errors should resolve since canonical decls now visible.
DISCIPLINE NOTE: my 77a per-extern classification correctly identified
Class A vs C2 vs C1, but I forgot to add the C2-helper-header includes
to the 3 files that didn't already have them. Same lesson as B-5
function-scoped extern compile-time-discovery — check include presence
when deleting externs whose canonical home isn't already #included.
testkeeper STRICT verify (gate items 1-6 hardened) requested post-commit.1 parent 47f3170 commit 0d1851d
3 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
0 commit comments