[lld] [llvm] [lld] Fix -ObjC load behavior with LTO (PR #92162)

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 26 21:32:55 PST 2025


aleksandr-urakov wrote:

> You have a case where the Swift compiler emits a section with a space? I haven't looked to closely

Yes, sure! Actually any `__TEXT, __swift5_proto` section contains a whitespace, because it's so in the compiler [sources](https://github.com/swiftlang/swift/blob/fa8609703528715794c8aeb21a1a617becef55c5/lib/IRGen/GenDecl.cpp#L4452).

It's easy reproducible:
```
% cat a.swift
protocol P {}
class C : P {}

% swiftc -emit-bc a.swift
```

https://github.com/llvm/llvm-project/pull/92162


More information about the llvm-commits mailing list