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 #8939

Closed drexin closed 6 days ago

drexin commented 6 days 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.

Cherry-picked from: https://github.com/apple/llvm-project/pull/8870

drexin commented 6 days ago

@swift-ci test