]> granicus.if.org Git - llvm/commit
[WebAssembly] Fix a bug when mixing TRY/LOOP markers
authorHeejin Ahn <aheejin@gmail.com>
Tue, 26 Mar 2019 17:29:55 +0000 (17:29 +0000)
committerHeejin Ahn <aheejin@gmail.com>
Tue, 26 Mar 2019 17:29:55 +0000 (17:29 +0000)
commit15e0c2b138b6768b60d0c27fc87e3175c80ebf5f
tree9792919db4a7ff6508b8ca824be846e50edc0dd2
parent76db59c4bede2283470f7dd08a67efa27ec796e5
[WebAssembly] Fix a bug when mixing TRY/LOOP markers

Summary:
When TRY and LOOP markers are in the same BB and END_TRY and END_LOOP
markers are in the same BB, END_TRY should be _before_ END_LOOP, because
LOOP is always before TRY if they are in the same BB. (TRY is placed in
the latest possible position, whereas LOOP is in the earliest possible
position.)

Reviewers: dschuff

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

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357008 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
test/CodeGen/WebAssembly/cfg-stackify-eh.ll