diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-05-15 00:26:15 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-05-15 00:26:15 +0000 |
commit | 8045810c58be96981cf5483f20e9aed3e98b505c (patch) | |
tree | 0ffb14c2d107bfa2ba4971fa8da2712083fab699 /llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp | |
parent | ff86773f51f214d990540e9542fc706f140e7bc7 (diff) | |
download | bcm5719-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.cpp | 2 |
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 |