OSDN Git Service

[WebAssembly] Add an assertion for an invalid CFG
authorHeejin Ahn <aheejin@gmail.com>
Tue, 17 Apr 2018 21:19:21 +0000 (21:19 +0000)
committerHeejin Ahn <aheejin@gmail.com>
Tue, 17 Apr 2018 21:19:21 +0000 (21:19 +0000)
commit51d5ef9dba4c392f7d1f08b9717a176ea39d8271
treecb5d9987689a330c30ee0afd2aa4d51d263fb970
parent3e79068e735685d0823c48cd80eda14347cac237
[WebAssembly] Add an assertion for an invalid CFG

Summary:
It was not easy to provide a test case for D45648 (rL330079) because the bug
didn't manifest itself in the set of currently valid IRs. Added an assertion to
check this faster, thanks to @dblaikie's suggestion.

Reviewers: dblaikie

Subscribers: jfb, dschuff, sbc100, jgravelle-google, llvm-commits, dblaikie

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330217 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp