Commit d165b6f
committed
[AST] Avoid computing
Doing so can result in a request cycle for the interface type, which
results in an ErrorType, which violates the assumption that a
`GenericTypeParamDecl` always has a `GenericTypeParamType` interface
type. We already have the code in place to defer the query to the decl,
so we don't actually need to set it at all.getValueType in GenericTypeParamType's decl constructor1 parent a83ea3c commit d165b6f
File tree
4 files changed
+14
-3
lines changed- lib/AST
- validation-test/compiler_crashers_2_fixed
4 files changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2237 | 2237 | | |
2238 | 2238 | | |
2239 | 2239 | | |
2240 | | - | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
2241 | 2244 | | |
2242 | 2245 | | |
2243 | 2246 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
0 commit comments