Remove an invalid assertion now that there are implicit virtual register operands.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 22 Feb 2008 19:25:04 +0000 (19:25 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 22 Feb 2008 19:25:04 +0000 (19:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47493 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetInstrDesc.h

index 34e295cfb639e3de3e443bd58be84e0395875ef9..16142c656aae0e620e3c1f19b60425a70ca81014 100644 (file)
@@ -122,8 +122,6 @@ public:
   /// it is set. Returns -1 if it is not set.
   int getOperandConstraint(unsigned OpNum,
                            TOI::OperandConstraint Constraint) const {
-    assert((OpNum < NumOperands || isVariadic()) &&
-           "Invalid operand # of TargetInstrInfo");
     if (OpNum < NumOperands &&
         (OpInfo[OpNum].Constraints & (1 << Constraint))) {
       unsigned Pos = 16 + Constraint * 4;