swift
192d275b - Prevent crash with `-playground` when `-experimental-skip-non-inlinable-function-bodies-without-types` also passed (#71171)

Commit
1 year ago
Prevent crash with `-playground` when `-experimental-skip-non-inlinable-function-bodies-without-types` also passed (#71171) Skip playground transform for functions that have skipped bodies. This can happen when passing `-emit-module` and `-experimental-skip-non-inlinable-function-bodies-without-types` and also enabling the playground transform. This causes the type to be `nullptr`. The fix is for the playground transform to check `AbstractFunctionDecl::isBodySkipped()`. rdar://119258854
Author
Parents
Loading