[all-commits] [llvm/llvm-project] d86543: [WebAssembly] Fix the order of destructors in the ...

Dan Gohman via All-commits all-commits at lists.llvm.org
Thu Mar 26 16:19:27 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d865437d9c82f814dd3b0d0e60042e2c176e201f
      https://github.com/llvm/llvm-project/commit/d865437d9c82f814dd3b0d0e60042e2c176e201f
  Author: Dan Gohman <sunfish at mozilla.com>
  Date:   2020-03-26 (Thu, 26 Mar 2020)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyLowerGlobalDtors.cpp
    M llvm/test/CodeGen/WebAssembly/lower-global-dtors.ll

  Log Message:
  -----------
  [WebAssembly] Fix the order of destructors in the LowerGlobalDtors pass.

Fix the LowerGlobalDtors pass to run destructors in the same order as the
regular LLVM destructor lowering -- in reverse order. Adjacent
destructors with the same associated object are grouped, but destructors
are not reordered based on associated objects.

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




More information about the All-commits mailing list