CodeGen: fix PPC Darwin variadics
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 25 Oct 2017 17:56:50 +0000 (17:56 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 25 Oct 2017 17:56:50 +0000 (17:56 +0000)
commit2a5015b11bb7143b13a316d76771796961a7238f
tree22cddec447b57128feb9a61a32aaf5ed96e442c2
parent175e775e0fc5ead7b207adc121c4f5d6e08f7402
CodeGen: fix PPC Darwin variadics

Darwin uses char * for the variadic list type (va_list).  We use the PPC
SVR4 ABI for PPC, which uses a structure type for the va_list.  When
constructing the GEP, we would fail due to the incorrect handling for
the va_list.  Correct this to use the right type.

llvm-svn: 316599
clang/lib/CodeGen/TargetInfo.cpp
clang/test/CodeGen/darwin-ppc-varargs.c [new file with mode: 0644]