HomePhabricator

[WebAssembly] Fix a sanitizer error in WasmEHPrepare

Authored by aheejin on Apr 4 2020, 9:45 AM.

Description

[WebAssembly] Fix a sanitizer error in WasmEHPrepare

Summary:
D77423 started using a dominator tree in WasmEHPrepare, but we deleted
BBs in prepareThrows before we used the domtree in prepareEHPads,
and those CFG changes were not reflected in the domtree. This uses
DomTreeUpdater to make sure we update the domtree every time we delete
BBs from the CFG. This fixes ubsan/msan/expensive_check errors caught in
LLVM buildbots.

Reviewers: dschuff

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

Tags: #llvm

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

Details

Committed
aheejinApr 4 2020, 9:57 AM
Differential Revision
D77465: [WebAssembly] Fix a sanitizer error in WasmEHPrepare
Parents
rGeb81d440fc96: fix typo in comment to cycle bots
Branches
Unknown
Tags
Unknown