HomePhabricator

[lld][WebAssembly] Allow ctors functions that return values

Authored by sbc100 on Jun 16 2020, 12:23 PM.

Description

[lld][WebAssembly] Allow ctors functions that return values

Some projects use the constructor attribute on functions that also
return values. In this case we just ignore them.

The error was reported in the libgpg-error project that marks
gpg_err_init with the __constructor__ attribute.

Differential Revision: https://reviews.llvm.org/D81962

Details