mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Make wrong preallocated arg count verifier error clearer
Reviewers: rnk Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D79128
This commit is contained in:
parent
7cb813a632
commit
ef49e838aa
@ -4507,8 +4507,9 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) {
|
|||||||
}
|
}
|
||||||
Assert(NumArgs->equalsInt(NumPreallocatedArgs),
|
Assert(NumArgs->equalsInt(NumPreallocatedArgs),
|
||||||
"llvm.call.preallocated.setup arg size must be equal to number "
|
"llvm.call.preallocated.setup arg size must be equal to number "
|
||||||
"of arguments "
|
"of preallocated arguments "
|
||||||
"at call site");
|
"at call site",
|
||||||
|
Call, *UseCall);
|
||||||
// getOperandBundle() cannot be called if more than one of the operand
|
// getOperandBundle() cannot be called if more than one of the operand
|
||||||
// bundle exists. There is already a check elsewhere for this, so skip
|
// bundle exists. There is already a check elsewhere for this, so skip
|
||||||
// here if we see more than one.
|
// here if we see more than one.
|
||||||
|
@ -98,7 +98,7 @@ define void @preallocated_require_bundle() {
|
|||||||
ret void
|
ret void
|
||||||
}
|
}
|
||||||
|
|
||||||
; CHECK: arg size must be equal to number of arguments
|
; CHECK: arg size must be equal to number of preallocated arguments
|
||||||
define void @preallocated_num_args() {
|
define void @preallocated_num_args() {
|
||||||
%cs = call token @llvm.call.preallocated.setup(i32 3)
|
%cs = call token @llvm.call.preallocated.setup(i32 3)
|
||||||
%x = call i8* @llvm.call.preallocated.arg(token %cs, i32 0) preallocated(i32)
|
%x = call i8* @llvm.call.preallocated.arg(token %cs, i32 0) preallocated(i32)
|
||||||
|
Loading…
Reference in New Issue
Block a user