Make the verifier a little more explicit about this problem.
authorChris Lattner <sabre@nondot.org>
Tue, 24 Feb 2004 22:06:07 +0000 (22:06 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 24 Feb 2004 22:06:07 +0000 (22:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11811 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Verifier.cpp

index bfd9ae6459d7ea177df0650118d3067a99112e56..4fe4adbadbcf36975ad6a04366ed1d9d04bf69fb 100644 (file)
@@ -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())