Commit 65f66cb
[DSLX:type_system] Resolve invocation callee using ref/def chain.
This also adds an appropriate check that the callee is a function. Previously
we would check that the function existed at module scope but get confounded by
the local shadow, causing an ICE.
Found via coverage-guided fuzzing.
PiperOrigin-RevId: 5979614741 parent aa74093 commit 65f66cb
File tree
3 files changed
+51
-7
lines changed- xls/dslx
- frontend
- type_system
3 files changed
+51
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
850 | 850 | | |
851 | 851 | | |
852 | 852 | | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
853 | 857 | | |
854 | 858 | | |
855 | 859 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
2923 | 2924 | | |
2924 | 2925 | | |
2925 | 2926 | | |
2926 | | - | |
2927 | | - | |
2928 | | - | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
2929 | 2938 | | |
2930 | 2939 | | |
2931 | 2940 | | |
| |||
3121 | 3130 | | |
3122 | 3131 | | |
3123 | 3132 | | |
| 3133 | + | |
3124 | 3134 | | |
3125 | 3135 | | |
3126 | 3136 | | |
3127 | 3137 | | |
3128 | 3138 | | |
3129 | 3139 | | |
3130 | 3140 | | |
3131 | | - | |
3132 | | - | |
3133 | | - | |
3134 | | - | |
| 3141 | + | |
| 3142 | + | |
| 3143 | + | |
| 3144 | + | |
| 3145 | + | |
| 3146 | + | |
| 3147 | + | |
| 3148 | + | |
3135 | 3149 | | |
3136 | 3150 | | |
3137 | 3151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2214 | 2214 | | |
2215 | 2215 | | |
2216 | 2216 | | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
2217 | 2243 | | |
2218 | 2244 | | |
0 commit comments