[all-commits] [llvm/llvm-project] 21e14c: [lld][WebAssembly] Allow ctors functions that retu...

Sam Clegg via All-commits all-commits at lists.llvm.org
Thu Jun 18 13:12:06 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 21e14cce23582fcd622b97d643a4e9b2f10a0583
      https://github.com/llvm/llvm-project/commit/21e14cce23582fcd622b97d643a4e9b2f10a0583
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2020-06-18 (Thu, 18 Jun 2020)

  Changed paths:
    A lld/test/wasm/ctor_return_value.s
    M lld/wasm/Writer.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list