commit | 2da9f1a84d08bb39de022bb169d99883c3d96745 | [log] [tgz] |
---|---|---|
author | Dan Gohman <dan433584@gmail.com> | Tue Jun 26 03:18:38 2018 +0000 |
committer | Dan Gohman <dan433584@gmail.com> | Tue Jun 26 03:18:38 2018 +0000 |
tree | ec14aa5be4d615f4e2b823b71cafb403fdaee86c | |
parent | 682da16f9951dee8dd04a773ac1eb8e1a7251264 [diff] |
[WebAssembly] Fix lowering of varargs functions with non-legal fixed arguments. CallLoweringInfo's NumFixedArgs field gives the number of fixed arguments before legalization. The ISD::OutputArg "Outs" array holds legalized arguments, so when indexing into it to find the non-fixed arguemn, we need to use the number of arguments after legalization. Fixes PR37934. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335576 91177308-0d34-0410-b5e6-96231b3b80d8