diff options
| author | Bill Wendling <isanbard@gmail.com> | 2010-06-07 19:18:58 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2010-06-07 19:18:58 +0000 |
| commit | cfcd0e12cf2466397f6fe0f00ec7ea8653c874fd (patch) | |
| tree | 45ecb07849be9e6caf287ddf8b92a960e70b25d7 /llvm/lib/VMCore | |
| parent | a2effb6452737a5038c625393a59c09a9eeb0c94 (diff) | |
| download | bcm5719-llvm-cfcd0e12cf2466397f6fe0f00ec7ea8653c874fd.tar.gz bcm5719-llvm-cfcd0e12cf2466397f6fe0f00ec7ea8653c874fd.zip | |
Another place where the code wanted to access the argument list and not all of
the operands.
llvm-svn: 105545
Diffstat (limited to 'llvm/lib/VMCore')
| -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 4ff03dbe9f8..4e5669a6137 100644 --- a/llvm/lib/VMCore/Verifier.cpp +++ b/llvm/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<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) { |

