use escape string.
[oota-llvm.git] / utils / TableGen / InstrInfoEmitter.cpp
index 6201690b10ef75c62daaa5f1fd15d3dcd2aa110e..61dbe64af8f39b904973fece9e5213be0361a2ac 100644 (file)
@@ -340,7 +340,8 @@ void InstrInfoEmitter::emitShiftedValue(Record *R, StringInit *Val,
         R->getName() != "EXTRACT_SUBREG" &&
         R->getName() != "INSERT_SUBREG" &&
         R->getName() != "IMPLICIT_DEF" &&
-        R->getName() != "SUBREG_TO_REG")
+        R->getName() != "SUBREG_TO_REG" &&
+        R->getName() != "COPY_TO_REGCLASS")
       throw R->getName() + " doesn't have a field named '" + 
             Val->getValue() + "'!";
     return;