commit | 7005517f42852ddb80ca986a2933f729d4fd0383 | [log] [tgz] |
---|---|---|
author | Dan Gohman <dan433584@gmail.com> | Tue Nov 28 17:15:03 2017 +0000 |
committer | Dan Gohman <dan433584@gmail.com> | Tue Nov 28 17:15:03 2017 +0000 |
tree | 0f3c97710a4e2645d5b63eb7b744ee6c53c52484 | |
parent | 46f8d8c3d5261dc4317ef9bbe97046f9de3cef83 [diff] |
[WebAssembly] Support bitcasted function addresses with varargs. Generalize FixFunctionBitcasts to handle varargs functions. This in particular fixes the case where clang bitcasts away a varargs when calling a K&R-style function. This avoids interacting with tricky ABI details because it operates at the LLVM IR level before varargs ABI details are exposed. This fixes PR35385. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319186 91177308-0d34-0410-b5e6-96231b3b80d8