diff options
Diffstat (limited to 'support/tools/TableGen/Record.cpp')
-rw-r--r-- | support/tools/TableGen/Record.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/support/tools/TableGen/Record.cpp b/support/tools/TableGen/Record.cpp index 781fecf820..968f367bd7 100644 --- a/support/tools/TableGen/Record.cpp +++ b/support/tools/TableGen/Record.cpp @@ -146,6 +146,13 @@ Init *ListRecTy::convertValue(TypedInit *TI) { return 0; } +Init *DagRecTy::convertValue(TypedInit *TI) { + if (TI->getType()->typeIsConvertibleTo(this)) + return TI; + return 0; +} + + void RecordRecTy::print(std::ostream &OS) const { OS << Rec->getName(); } |