This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Default to a reasonable signature in WebAssemblyAddMissingPrototypes
ClosedPublic

Authored by sbc100 on Feb 20 2019, 7:22 PM.

Details

Summary

Previously if we couldn't derive a prototype for a "no-prototype"
function from C we would leave it as is:

void foo(...)

With this change we instead give is an empty signature and remove
the "no-prototype" attribute.

This fixes the current wasm waterfall test failure.

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.Feb 20 2019, 7:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 20 2019, 7:22 PM
sbc100 retitled this revision from [WebAssembly] Default to something reasonable in WebAssemblyAddMissingPrototypes to [WebAssembly] Default to a reasonable signature in WebAssemblyAddMissingPrototypes.
sbc100 edited the summary of this revision. (Show Details)Feb 20 2019, 7:24 PM
This revision was not accepted when it landed; it landed in state Needs Review.Feb 20 2019, 7:26 PM
This revision was automatically updated to reflect the committed changes.