Commit 48b491d
committed
AST: Avoid invoking TypeAliasDecl::getUnderlyingType() from isInterestingTypealias()
Diagnostics are emitted from weird places sometimes, and as a result the emission
is fragile for two reasons:
- Kicking off requests can trigger cycles
- Doing anything that can re-entrantly diagnose something else might crash
In this case, the problem is getUnderlyingType(), which might kick off type
resolution on the typealias. Since we already have a Type, just check that
instead of getting a new one.1 parent 0045840 commit 48b491d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
483 | | - | |
| 483 | + | |
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
| |||
0 commit comments