[SR-9100] inout-to-pointer is used when passing an optional array to an Unsafe[Mutable]RawPointer? #51597
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Environment
Swift version 4.2-dev (LLVM 80f624ef0e, Clang fb15cea7bb, Swift 38c1b02180)
Target: x86_64-apple-darwin17.7.0
Additional Detail from JIRA
md5: e4003f5cda86a842b9e9a0ce822a9a68
Issue Description:
In the following, we use an array-to-pointer conversion:
but if we make
arr
optional, then we use inout-to-pointer:We should really be using array-to-pointer in both examples.
The text was updated successfully, but these errors were encountered: