Skip to content

Commit

Permalink
[WebAssembly] Fix unwind destination mismatches in CFG stackify
Browse files Browse the repository at this point in the history
Summary:
Linearing the control flow by placing `try`/`end_try` markers can create
mismatches in unwind destinations. This patch resolves these mismatches
by wrapping those instructions with an incorrect unwind destination with
a nested `try`/`catch`/`end_try` and branching to the right destination
within the new catch block.

Reviewers: dschuff

Subscribers: sunfish, sbc100, jgravelle-google, chrib, llvm-commits

Tags: #llvm

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

llvm-svn: 357343
  • Loading branch information
aheejin committed Mar 30, 2019
1 parent e9fd907 commit c4ac74f
Show file tree
Hide file tree
Showing 3 changed files with 765 additions and 20 deletions.
Loading

0 comments on commit c4ac74f

Please sign in to comment.