[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)
commit2b8158f441da74d8432c7629b005a7107a44186b
tree1b1e29b5e3d8203b337b4443a2af1760edf0133b
parente6ac9f5ec3b890885abef8c4a315203ef02a25e5
[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

llvm-svn: 330217
llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp