llvm.org GIT mirror llvm / d2b9f20
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141315 91177308-0d34-0410-b5e6-96231b3b80d8 David Greene 8 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
14551455 if (Result) {
14561456 TypedInit *TInit = dynamic_cast(Result);
14571457 if (TInit) {
1458 return TInit->resolveListElementReference(R, RV, Elt);
1458 Init *Result2 = TInit->resolveListElementReference(R, RV, Elt);
1459 if (Result2) return Result2;
1460 return new VarListElementInit(TInit, Elt);
14591461 }
14601462 return Result;
14611463 }