diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-24 22:06:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-24 22:06:07 +0000 |
commit | d996e543ebc4cf16c5fdfb06d2089862b519fb2c (patch) | |
tree | 892f5474b60edc32ca2ed5e9f49890dba63a275b /llvm/lib/VMCore/Verifier.cpp | |
parent | 396cdaf067203f53cd0c1b768163492cd1902a9c (diff) | |
download | bcm5719-llvm-d996e543ebc4cf16c5fdfb06d2089862b519fb2c.tar.gz bcm5719-llvm-d996e543ebc4cf16c5fdfb06d2089862b519fb2c.zip |
Make the verifier a little more explicit about this problem.
llvm-svn: 11811
Diffstat (limited to 'llvm/lib/VMCore/Verifier.cpp')
-rw-r--r-- | llvm/lib/VMCore/Verifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp index bfd9ae6459d..4fe4adbadbc 100644 --- a/llvm/lib/VMCore/Verifier.cpp +++ b/llvm/lib/VMCore/Verifier.cpp @@ -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()) |