diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-04 04:53:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-04 04:53:50 +0000 |
commit | e9d019c364398dd030af3dcefd135d6c557a8cc3 (patch) | |
tree | 9bb8e8c10a8d14cb56884bd553333383045b900f /utils/TableGen/Record.cpp | |
parent | 83a913d4ef89ca646fdcc382a6358eeb948df22e (diff) | |
download | external_llvm-e9d019c364398dd030af3dcefd135d6c557a8cc3.zip external_llvm-e9d019c364398dd030af3dcefd135d6c557a8cc3.tar.gz external_llvm-e9d019c364398dd030af3dcefd135d6c557a8cc3.tar.bz2 |
It appears that somehow we forgot to add support for code variables.
Fix bug: TableGen/2003-08-03-PassCode.td
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7561 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/Record.cpp')
-rw-r--r-- | utils/TableGen/Record.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/TableGen/Record.cpp b/utils/TableGen/Record.cpp index 968f367..616c790 100644 --- a/utils/TableGen/Record.cpp +++ b/utils/TableGen/Record.cpp @@ -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; |