[PlaceSafepoints] Fix a bug that came in with rL236672.
authorSanjoy Das <sanjoy@playingwithpointers.com>
Fri, 15 May 2015 00:26:15 +0000 (00:26 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Fri, 15 May 2015 00:26:15 +0000 (00:26 +0000)
commit4c4b944e835178419b4de36aa9992e56b038b381
treef832b12ea5bae26e4c85c20a3d33a6c896732064
parent634e01a3e5f7d8897979597b278d9b6bced56f76
[PlaceSafepoints] Fix a bug that came in with rL236672.

rL236672 would generate all invoke statepoints with deopt args set to a
list containing the single element "0", instead of an empty list.

Also add a test case that would have caught this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237413 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/PlaceSafepoints.cpp
test/Transforms/PlaceSafepoints/statepoint-format.ll [new file with mode: 0644]