mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 01:11:44 +00:00
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
This commit is contained in:
parent
0ed16506bf
commit
711c41bd3d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user