[PATCH] D50980: [WebAssembly] Restore __stack_pointer after catch instructions

Heejin Ahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 20 10:41:32 PDT 2018


aheejin created this revision.
aheejin added reviewers: jgravelle-google, dschuff.
Herald added subscribers: llvm-commits, sunfish, sbc100, mgorny.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D50980

Files:
  lib/Target/WebAssembly/CMakeLists.txt
  lib/Target/WebAssembly/WebAssembly.h
  lib/Target/WebAssembly/WebAssemblyEHRestoreStackPointer.cpp
  lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
  lib/Target/WebAssembly/WebAssemblyFrameLowering.h
  lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
  test/CodeGen/WebAssembly/exception.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50980.161510.patch
Type: text/x-patch
Size: 10342 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180820/08f88f8a/attachment.bin>


More information about the llvm-commits mailing list