diff options
author | Guanzhong Chen <gzchen@google.com> | 2019-08-13 21:41:11 +0000 |
---|---|---|
committer | Guanzhong Chen <gzchen@google.com> | 2019-08-13 21:41:11 +0000 |
commit | 8a503e439d0d254e5be5c2655a63a5a34b70dbac (patch) | |
tree | a1bc8ea03459b97817d1eb4d8ba67bcf87c215f4 /lldb/packages/Python/lldbsuite/test/expression_command | |
parent | 10f0668b572d49c1cda42f60d49a310cff2cd5a6 (diff) | |
download | bcm5719-llvm-8a503e439d0d254e5be5c2655a63a5a34b70dbac.tar.gz bcm5719-llvm-8a503e439d0d254e5be5c2655a63a5a34b70dbac.zip |
[WebAssembly] Make clang emit correct va_arg code for structs
Summary:
In the WebAssembly backend, when lowering variadic function calls, non-single
member aggregate type arguments are always passed by pointer.
However, when emitting va_arg code in clang, the arguments are instead read as
if they are passed directly. This results in the pointer being read as the
actual structure.
Fixes https://github.com/emscripten-core/emscripten/issues/9042.
Reviewers: tlively, sbc100, kripken, aheejin, dschuff
Reviewed By: dschuff
Subscribers: dschuff, jgravelle-google, sunfish, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D66168
llvm-svn: 368750
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command')
0 files changed, 0 insertions, 0 deletions