Fix verification of explicit operands.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 23 Sep 2009 20:57:55 +0000 (20:57 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 23 Sep 2009 20:57:55 +0000 (20:57 +0000)
commit39523e2cfb625d90aa122252b041e2311a9a8ca5
treed7de84b5e9d0462b232ada5a7934af5182cb72a8
parent959b002c4d3ee11546d7f6c750339d58edc5338f
Fix verification of explicit operands.

The machine code verifier did not check for explicit operands correctly. It
used MachineInstr::getNumExplicitOperands, but that method may cheat and use
the declared count in the TargetInstrDesc.

Now we check the explicit operands one at a time in visitMachineOperand.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82652 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineVerifier.cpp