Commit 4a94afa
committed
[CSSimplify] Add a null check to guard against broken/missing
I couldn't come up with an isolated test-case to add to the suite,
but it's possible that `getProtocol` returns `nullptr` for invalid
or missing protocol so there has to be a check for that otherwise
compiler is going to crash trying to access `getDeclaredType()`.
Resolves: rdar://76187450ExpressibleByNilLiteral
1 parent 4de232e commit 4a94afa
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6216 | 6216 | | |
6217 | 6217 | | |
6218 | 6218 | | |
6219 | | - | |
6220 | | - | |
| 6219 | + | |
| 6220 | + | |
| 6221 | + | |
| 6222 | + | |
| 6223 | + | |
6221 | 6224 | | |
6222 | 6225 | | |
6223 | 6226 | | |
| |||
0 commit comments