OSDN Git Service

[WebAssembly] Handle END_LOOP in unreachable BB in CFGStackify
authorHeejin Ahn <aheejin@gmail.com>
Fri, 29 Mar 2019 19:36:51 +0000 (19:36 +0000)
committerHeejin Ahn <aheejin@gmail.com>
Fri, 29 Mar 2019 19:36:51 +0000 (19:36 +0000)
commit2dbff99e43a082c76202cfafb8f5da40f11c94dc
treecf7c2fc455c027a3a4c4bd380648c7836a3ec760
parent234b3a117e8a966a077e154eba0241fa00622871
[WebAssembly] Handle END_LOOP in unreachable BB in CFGStackify

Summary:
This fixes crashes when a BB in which an END_LOOP is to be placed is
unreachable and does not have any predecessors. Fixes PR41307.

Reviewers: dschuff

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

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357303 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
test/CodeGen/WebAssembly/cfg-stackify-dbg.mir [new file with mode: 0644]