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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This looks good to me.
lib/IR/Verifier.cpp | ||
---|---|---|
2825 ↗ | (On Diff #170732) | why do you need this first condition? |
Comment Actions
Thank you for the review!
lib/IR/Verifier.cpp | ||
---|---|---|
2825 ↗ | (On Diff #170732) | This is to handle indirect calls (and avoid crash). |