Some types (e.g. _Bool) have different scalar and memory representations. CodeGen for va_arg didn't take this into account, leading to an assertion failures with different types.
This patch makes sure we use memory representation for va_arg.
|  Differential  D118904  
[clang][CodeGen] Use memory type representation in `va_arg` Authored by jansvoboda11 on Feb 3 2022, 7:03 AM. 
Details Some types (e.g. _Bool) have different scalar and memory representations. CodeGen for va_arg didn't take this into account, leading to an assertion failures with different types. This patch makes sure we use memory representation for va_arg. 
Diff Detail 
 Event TimelineComment Actions Should we add tests for other targets besides arm64? 
 Comment Actions LGTM 
 | ||||||||||||
Not sure what to check here. Currently, we're just verifying the compiler doesn't crash.