diff options
author | David Greene <greened@obbligato.org> | 2011-10-06 21:20:46 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2011-10-06 21:20:46 +0000 |
commit | 7475ad05fa70b7e654e74cc213d38c838ed72f6e (patch) | |
tree | 2708becf9b026785946d6190358628a64882e517 /llvm/lib/TableGen | |
parent | 74842740c0da91bc32fcd6af75223f38e5403f36 (diff) | |
download | bcm5719-llvm-7475ad05fa70b7e654e74cc213d38c838ed72f6e.tar.gz bcm5719-llvm-7475ad05fa70b7e654e74cc213d38c838ed72f6e.zip |
Fix List-of-List Processing
Fix VarListElementInit::resolveListElementReference to return a
partially resolved VarListElementInint in the case where full
resolution is not possible. This allows TableGen to make forward
progress resolving certain complex list expressions.
llvm-svn: 141315
Diffstat (limited to 'llvm/lib/TableGen')
-rw-r--r-- | llvm/lib/TableGen/Record.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/TableGen/Record.cpp b/llvm/lib/TableGen/Record.cpp index 44945e3adb6..b7c51cae953 100644 --- a/llvm/lib/TableGen/Record.cpp +++ b/llvm/lib/TableGen/Record.cpp @@ -1456,7 +1456,9 @@ Init *VarListElementInit:: resolveListElementReference(Record &R, if (Result) { TypedInit *TInit = dynamic_cast<TypedInit *>(Result); if (TInit) { - return TInit->resolveListElementReference(R, RV, Elt); + Init *Result2 = TInit->resolveListElementReference(R, RV, Elt); + if (Result2) return Result2; + return new VarListElementInit(TInit, Elt); } return Result; } |