Files
swift-mirror/lib/Sema/ConstantnessSemaDiagnostics.cpp
Ravi Kandhadai 49b0984e19 [Sema][os_log] Allow wrapping os_log strings within constant evaluable functions.
As of now, the sema checks for os_log allow only string interpolations to be passed
to the log calls. E.g. logger.log(foo("message")) would not be allowed. This PR
relaxes this requirement and allows it as long as foo is annotated as
@_semantics("constant_evaluable").

<rdar://problem/65215054>
2020-07-15 10:54:08 -07:00

15 KiB