mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The constructor here required multiple user-defined conversions which is not exactly pedantically correct. Add an explicit indicator that the constructor being invoked is the `StringRef` constructor to convert the `SmallString` to a `StringRef` which can then be implicitly converted to the `Optional<StringRef>`. This silences a MSVC warning (clang should catch this with `-pedantic`).