mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Make the verifier a little more explicit about this problem.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11811 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d561209a47
commit
2a11653fa9
@ -386,9 +386,9 @@ void Verifier::visitCallInst(CallInst &CI) {
|
||||
|
||||
// Verify that all arguments to the call match the function type...
|
||||
for (unsigned i = 0, e = FTy->getNumParams(); i != e; ++i)
|
||||
Assert2(CI.getOperand(i+1)->getType() == FTy->getParamType(i),
|
||||
Assert3(CI.getOperand(i+1)->getType() == FTy->getParamType(i),
|
||||
"Call parameter type does not match function signature!",
|
||||
CI.getOperand(i+1), FTy->getParamType(i));
|
||||
CI.getOperand(i+1), FTy->getParamType(i), &CI);
|
||||
|
||||
if (Function *F = CI.getCalledFunction())
|
||||
if (Intrinsic::ID ID = (Intrinsic::ID)F->getIntrinsicID())
|
||||
|
Loading…
Reference in New Issue
Block a user