mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 22:23:10 +00:00
[PlaceSafepoints] Fix a bug that came in with rL236672.
Transfer the calling convention from the invoke being replaced by PlaceStatepoints to the new invoke to gc.statepoint created. Add a test case that would have caught this issue. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237414 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -951,6 +951,8 @@ static Value *ReplaceWithStatepoint(const CallSite &CS, /* to replace */
|
||||
ToReplace->getUnwindDest(), makeArrayRef(CS.arg_begin(), CS.arg_end()),
|
||||
None, None, "safepoint_token");
|
||||
|
||||
Invoke->setCallingConv(ToReplace->getCallingConv());
|
||||
|
||||
// In case if we can handle this set of attributes - set up function
|
||||
// attributes directly on statepoint and return attributes later for
|
||||
// gc_result intrinsic.
|
||||
|
||||
Reference in New Issue
Block a user