[SR-5271] Don't emit objc_retainAutoreleasedReturnValue() on non-ObjC targets #47846
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
IRGen
LLVM IR generation
Linux
Platform: Linux
objective-c interop
Feature: Interoperability with Objective-C
swift 5.10
unexpected behavior
Bug: Unexpected behavior or incorrect output
Additional Detail from JIRA
md5: a6d7c57d30f3e5c418c7e873e72b29e1
relates to:
swift test
induces an error "undefined reference to 'objc_retainAutoreleasedReturnValue'" when callsCFStringConvertEncodingToIANACharSetName(_: )
on LinuxIssue Description:
As per the comment in https://github.com/apple/swift-corelibs-foundation/blob/master/CoreFoundation/Base.subproj/CFRuntime.c#L1702
The stub just calls swift_retain() but the compiler should be fixed properly so that this workaround can be removed.
The text was updated successfully, but these errors were encountered: