summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2015-05-15 00:26:15 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2015-05-15 00:26:15 +0000
commit8045810c58be96981cf5483f20e9aed3e98b505c (patch)
tree0ffb14c2d107bfa2ba4971fa8da2712083fab699 /llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp
parentff86773f51f214d990540e9542fc706f140e7bc7 (diff)
downloadbcm5719-llvm-8045810c58be96981cf5483f20e9aed3e98b505c.tar.gz
bcm5719-llvm-8045810c58be96981cf5483f20e9aed3e98b505c.zip
[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. llvm-svn: 237413
Diffstat (limited to 'llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp b/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp
index 04750c9849a..53eed86b81f 100644
--- a/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp
+++ b/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp
@@ -949,7 +949,7 @@ static Value *ReplaceWithStatepoint(const CallSite &CS, /* to replace */
InvokeInst *Invoke = Builder.CreateGCStatepointInvoke(
ID, NumPatchBytes, StatepointTarget, ToReplace->getNormalDest(),
ToReplace->getUnwindDest(), makeArrayRef(CS.arg_begin(), CS.arg_end()),
- Builder.getInt32(0), None, "safepoint_token");
+ None, None, "safepoint_token");
// In case if we can handle this set of attributes - set up function
// attributes directly on statepoint and return attributes later for
OpenPOWER on IntegriCloud