[IRVerifier] Allow StructRet in statepoint
authorThan McIntosh <thanm@google.com>
Fri, 16 Nov 2018 14:28:05 +0000 (14:28 +0000)
committerThan McIntosh <thanm@google.com>
Fri, 16 Nov 2018 14:28:05 +0000 (14:28 +0000)
commit4a1c5da7ac063a6a73da973871fb9584fce19104
tree6ed5096a117a730cbb6a6abcdc449e72052ef599
parent705fbd5d4ff5abd39c5fb50c4a55988d78e94b68
[IRVerifier] Allow StructRet in statepoint

Summary:
StructRet attribute is not allowed in vararg calls. The statepoint
intrinsic is vararg, but the wrapped function may be not. Allow
calls of statepoint with StructRet arg, as long as the wrapped
function is not vararg.

Reviewers: thanm, anna

Reviewed By: anna

Subscribers: anna, llvm-commits

Differential Revision: https://reviews.llvm.org/D53602

llvm-svn: 347050
llvm/lib/IR/Verifier.cpp
llvm/test/Verifier/statepoint.ll