[PATCH] D53619: [WebAssembly] Fix immediate of rethrow when throwing to caller
Heejin Ahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 24 16:33:42 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL345223: [WebAssembly] Fix immediate of rethrow when throwing to caller (authored by aheejin, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D53619
Files:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
llvm/trunk/test/CodeGen/WebAssembly/cfg-stackify-eh.mir
Index: llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
===================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
@@ -767,7 +767,7 @@
case WebAssembly::RETHROW_TO_CALLER: {
MachineInstr *Rethrow =
BuildMI(MBB, MI, MI.getDebugLoc(), TII.get(WebAssembly::RETHROW))
- .addImm(Stack.size());
+ .addImm(EHPadStack.size());
MI.eraseFromParent();
I = MachineBasicBlock::reverse_iterator(Rethrow);
break;
Index: llvm/trunk/test/CodeGen/WebAssembly/cfg-stackify-eh.mir
===================================================================
--- llvm/trunk/test/CodeGen/WebAssembly/cfg-stackify-eh.mir
+++ llvm/trunk/test/CodeGen/WebAssembly/cfg-stackify-eh.mir
@@ -180,7 +180,7 @@
RETHROW_TO_CALLER implicit-def $arguments
; CHECK-LABEL: bb.7:
; CHECK-NEXT: END_TRY
- ; CHECK: RETHROW 3
+ ; CHECK: RETHROW 0
bb.8:
; predecessors: %bb.2, %bb.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53619.171023.patch
Type: text/x-patch
Size: 1095 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181024/9a1c827f/attachment.bin>
More information about the llvm-commits
mailing list