mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We inline a function (e.g. a struct initializer) into a global init function if the result is part of the initialized global. Now, also handle functions with indirect return values. Such function can result from not-reabstracted generic specializations. Handle cases where the result is stored into a temporary alloc_stack or directly stored to (a part) of the global variable.