HomePhabricator

[WebAssembly] Restore __stack_pointer after catch instructions

Authored by aheejin on Aug 21 2018, 2:23 PM.

Description

[WebAssembly] Restore __stack_pointer after catch instructions

Summary:
After the stack is unwound due to a thrown exception, the
__stack_pointer global can point to an invalid address. This inserts
instructions that restore __stack_pointer global.

Reviewers: jgravelle-google, dschuff

Subscribers: mgorny, sbc100, sunfish, llvm-commits

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

llvm-svn: 340339