]> granicus.if.org Git - llvm/commit
[WebAssembly] Fix allocsize attribute in sjlj lowering
authorKeno Fischer <keno@alumni.harvard.edu>
Sat, 3 Aug 2019 21:38:19 +0000 (21:38 +0000)
committerKeno Fischer <keno@alumni.harvard.edu>
Sat, 3 Aug 2019 21:38:19 +0000 (21:38 +0000)
commit182ce13e083d27e71bdf4fcf70a96dc995a504bb
treecb882bf7f5dd39248caa511bc09354169f1bb31c
parent5d19d6d5f47aa5e96eb346865b9af80e00b52951
[WebAssembly] Fix allocsize attribute in sjlj lowering

Summary:
The allocsize attribute refers to call parameters by index.
Thus, when we add the extra parameter in sjlj lowering, we
need to increment the referenced paramater in the allocsize
attribute to avoid angering the Verifier.

Reviewed By: aheejin
Differential Revision: https://reviews.llvm.org/D65470

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367765 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
test/CodeGen/WebAssembly/lower-em-sjlj.ll