[stdlib/private][oslog] Make tiny helper functions of struct OSLogMessage constant_evaluable

instead of transparent.
This commit is contained in:
Ravi Kandhadai
2019-11-19 12:17:59 -08:00
parent 0dc9a0e964
commit 05be088431
5 changed files with 19 additions and 13 deletions

View File

@@ -66,6 +66,7 @@ internal func osLog(
let preamble = message.interpolation.preamble
let argumentCount = message.interpolation.argumentCount
let bufferSize = message.bufferSize
let uint32bufferSize = UInt32(bufferSize)
let argumentClosures = message.interpolation.arguments.argumentClosures
let formatStringPointer = _getGlobalStringTablePointer(formatString)
@@ -91,7 +92,7 @@ internal func osLog(
logLevel,
formatStringPointer,
bufferMemory,
UInt32(bufferSize))
uint32bufferSize)
// The following operation extends the lifetime of stringStorageObjects
// and also of the objects stored in it till this point.