A musttail with function pointers doesn't rewind C stack without this.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
this function is broken without this change: https://github.com/yamt/garbage/blob/51ec5aaea4e30c9eece7665dea78cb71364076e2/wasm/tail-call/b.c#L12
do you mean adding a test case in llvm tree? i'm not familiar with it. if you mean so, can you point me where to add?
Comment Actions
sorry, i linked to a wrong function.
actually this function: https://github.com/yamt/garbage/blob/51ec5aaea4e30c9eece7665dea78cb71364076e2/wasm/tail-call/a.c#L7
Comment Actions
LGTM % comment
llvm/test/CodeGen/WebAssembly/tailcall.ll | ||
---|---|---|
260 | Can you add a little more comment that says this test is to test if SP restoring code is generated correctly before the return_call? |
llvm/test/CodeGen/WebAssembly/tailcall.ll | ||
---|---|---|
260 | done |
Can you add a little more comment that says this test is to test if SP restoring code is generated correctly before the return_call?