It appears that somehow we forgot to add support for code variables.
[oota-llvm.git] / support / tools / TableGen / Record.cpp
index 968f367bd7a832f14b85db8aa92e0cbca4aec501..616c790f06b6e33a6ef0a7a45c2e496cf06d0fa6 100644 (file)
@@ -146,6 +146,12 @@ Init *ListRecTy::convertValue(TypedInit *TI) {
   return 0;
 }
 
+Init *CodeRecTy::convertValue(TypedInit *TI) {
+  if (TI->getType()->typeIsConvertibleTo(this))
+    return TI;
+  return 0;
+}
+
 Init *DagRecTy::convertValue(TypedInit *TI) {
   if (TI->getType()->typeIsConvertibleTo(this))
     return TI;