Files
swift-mirror/lib/Sema/ConstraintSystem.cpp
Doug Gregor 7475bcd2ff [Function builders] Prescan closure bodies for a 'return' statement.
Since we short-circuit in the function builder application when we
hit something we cannot translate, relying on that visitor to
detect 'return' statements (which disable the application) is bogus.
Use a separate, earlier visitor to find 'return' statements consistently.

Fixes rdar://problem/50266341.
2019-06-11 17:34:45 -07:00

112 KiB