[all-commits] [llvm/llvm-project] 9f770b: [WebAssembly] Fix catch unwind mismatches

Heejin Ahn via All-commits all-commits at lists.llvm.org
Sat Feb 6 07:19:37 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9f770b36cbf62b7226174402fb71007f56e5f04f
      https://github.com/llvm/llvm-project/commit/9f770b36cbf62b7226174402fb71007f56e5f04f
  Author: Heejin Ahn <aheejin at gmail.com>
  Date:   2021-02-06 (Sat, 06 Feb 2021)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
    M llvm/test/CodeGen/WebAssembly/cfg-stackify-eh.ll

  Log Message:
  -----------
  [WebAssembly] Fix catch unwind mismatches

This fixes unwind destination mismatches caused by 'catch'es, which
occur when a foreign exception is not caught by the nearest `catch` and
the next outer `catch` is not the catch it should unwind to, or the next
unwind destination should be the caller instead. This kind of mismatches
didn't exist in the previous version of the spec, because in the
previous spec `catch` was effectively `catch_all`, catching all
exceptions.

Reviewed By: tlively

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




More information about the All-commits mailing list