HomePhabricator

[ABI] Fix SystemV ABI to handle nested aggregate type returned in register

Description

[ABI] Fix SystemV ABI to handle nested aggregate type returned in register

Add a function to flatten the nested aggregate type

Differential Revision: https://reviews.llvm.org/D62702

Patch by Wanyi Ye <kusmour@gmail.com>