mirror of
https://github.com/apple/swift.git
synced 2026-10-12 14:50:47 +02:00
Perhaps overly defensive, but guard against spurious errors that Sema might throw during __convertToBool() synthesis. For example, we previously did not handle the scenario where the derived CXXRecord has an unreachable definition but its inherited operator bool() was still reachable. With this guard, unforeseen Sema failures bail gracefully rather than tank the compilation. rdar://181622867
42 KiB
42 KiB