Another place where the code wanted to access the argument list and not all of
authorBill Wendling <isanbard@gmail.com>
Mon, 7 Jun 2010 19:18:58 +0000 (19:18 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 7 Jun 2010 19:18:58 +0000 (19:18 +0000)
the operands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105545 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Verifier.cpp

index 4ff03dbe9f8647753cc794d91f5808289d447e4f..4e5669a61377e0970fb65060d23266f5e0f66c11 100644 (file)
@@ -1628,8 +1628,8 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) {
 
   // If the intrinsic takes MDNode arguments, verify that they are either global
   // or are local to *this* function.
-  for (unsigned i = 1, e = CI.getNumOperands(); i != e; ++i)
-    if (MDNode *MD = dyn_cast<MDNode>(CI.getOperand(i)))
+  for (unsigned i = 0, e = CI.getNumArgOperands(); i != e; ++i)
+    if (MDNode *MD = dyn_cast<MDNode>(CI.getArgOperand(i)))
       visitMDNode(*MD, CI.getParent()->getParent());
 
   switch (ID) {