Files
swift-mirror/lib/Sema/CSSimplify.cpp
Pavel Yaskevich 4a94afa357 [CSSimplify] Add a null check to guard against broken/missing ExpressibleByNilLiteral
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://76187450
2021-04-07 14:35:31 -07:00

450 KiB