[PlaceSafepoints] Fix a bug that came in with rL236672.
authorSanjoy Das <sanjoy@playingwithpointers.com>
Fri, 15 May 2015 00:26:21 +0000 (00:26 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Fri, 15 May 2015 00:26:21 +0000 (00:26 +0000)
commitfa93d0e1c661693a9940deaef4d03d15988ae9b3
tree3fa7f01c8efcd0c85dc2f2fb014f6807e2dd0aed
parent4c4b944e835178419b4de36aa9992e56b038b381
[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
lib/Transforms/Scalar/PlaceSafepoints.cpp
test/Transforms/PlaceSafepoints/statepoint-calling-conventions.ll [new file with mode: 0644]