apple / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. This fork is used to manage Apple’s stable releases of Clang as well as support the Swift project.
https://llvm.org
Other
1.1k stars 320 forks source link

[CodeGen] Add typed error logic to SwiftAggLowering #8870

Closed drexin closed 1 week ago

drexin commented 4 weeks ago

rdar://129359321

Adds SwiftAggLowerign::shouldReturnTypedErrorIndirectly, which checks if a typed error can be returned directly, similar to how shouldPassIndirectly works, but with the additional restriction of the type having to consist of only integers.

drexin commented 2 weeks ago

@swift-ci test