From: Bill Wendling Date: Mon, 7 Jun 2010 19:18:58 +0000 (+0000) Subject: Another place where the code wanted to access the argument list and not all of X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d942df2f9ea2b42a2614b2ad7afc939c72639c92;p=oota-llvm.git Another place where the code wanted to access the argument list and not all of the operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105545 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 4ff03dbe9f8..4e5669a6137 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -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(CI.getOperand(i))) + for (unsigned i = 0, e = CI.getNumArgOperands(); i != e; ++i) + if (MDNode *MD = dyn_cast(CI.getArgOperand(i))) visitMDNode(*MD, CI.getParent()->getParent()); switch (ID) {