Fix X86_64 complex-returns for regcall.
authorErich Keane <erich.keane@intel.com>
Tue, 19 May 2020 19:54:35 +0000 (12:54 -0700)
committerErich Keane <erich.keane@intel.com>
Tue, 19 May 2020 20:21:15 +0000 (13:21 -0700)
commit74ef6a11478abe5f0f3f817640508f0cf5d8de0c
tree360879dc1c6c4d18790a53c51feafe919d735a56
parent350dadaa8ab3db34ff41d7291f43442c57719de3
Fix X86_64 complex-returns for regcall.

D35259 introduced a case where complex types of non-long-double would
result in FI.getReturnInfo() to not be initialized properly.  This
resulted in a crash under some very specific circumstances when
dereferencing the LLVMContext.

This patch makes sure that these types have the intended getReturnInfo
initialization.
clang/lib/CodeGen/TargetInfo.cpp
clang/test/CodeGenCXX/regcall.cpp