]> git.lizzy.rs Git - rust.git/commit
Fix LLVM IR generated for C-variadic arguments
authorDan Robertson <dan@dlrobertson.com>
Wed, 27 Mar 2019 13:00:37 +0000 (13:00 +0000)
committerDan Robertson <dan@dlrobertson.com>
Sun, 31 Mar 2019 17:37:37 +0000 (17:37 +0000)
commita9d62be557a648f254c6850e2a08917686a26976
tree98295c7ffc52b7bcbc92dd7d2caa6f6a7f6f7401
parentb0fcfa7d6135ecfdfebd325683890ae6dcf5eb18
Fix LLVM IR generated for C-variadic arguments

It is possible to create malformed LLVM IR given variadic arguments that
are aggregate types. This occurs due to improper tracking of the current
argument in the functions list of arguments.
src/librustc_codegen_ssa/mir/block.rs
src/test/codegen/issue-58881.rs [new file with mode: 0644]