Commit 299da73
committed
[MiscDiagnostics] NFC: Add an assert that arguments a valid to
Make sure that both arguments are valid before checking conformance
to `FloatingPoint`. This helps us to debug reports of crashes in
`conformsToKnownProtocol` referencing arguments (rdar://78920375).
Since this diagnostic should only be run on type-checked AST,
it's unclear what caused one of the arguments to have null type..nan comparison diagnostic1 parent 7fd69a0 commit 299da73
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4541 | 4541 | | |
4542 | 4542 | | |
4543 | 4543 | | |
| 4544 | + | |
| 4545 | + | |
| 4546 | + | |
| 4547 | + | |
| 4548 | + | |
| 4549 | + | |
| 4550 | + | |
| 4551 | + | |
| 4552 | + | |
4544 | 4553 | | |
4545 | 4554 | | |
4546 | 4555 | | |
| |||
0 commit comments