Fix a tblgen problem handling variable_ops in tblgen instruction
[oota-llvm.git] / utils / TableGen / CodeGenInstruction.cpp
index 37c2069ec7279e3b8af3d4b8b75f5d963cc981af..d52037823f67857c07e171438a64ac4097f47881 100644 (file)
@@ -163,7 +163,8 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr)
       isVariadic = true;
       continue;
     } else if (!Rec->isSubClassOf("RegisterClass") && 
-               Rec->getName() != "ptr_rc" && Rec->getName() != "unknown")
+               Rec->getName() != "ptr_rc" && Rec->getName() != "unknown" &&
+               Rec->getName() != "discard")
       throw "Unknown operand class '" + Rec->getName() +
             "' in instruction '" + R->getName() + "' instruction!";