File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2098,10 +2098,20 @@ class SsaInstructionSimplifier extends HBaseVisitor
2098
2098
_registry.registerInstantiation (constantValue.type);
2099
2099
return HLoadType .type (constantValue.type, instance.instructionType);
2100
2100
}
2101
+ if (constantValue is ListConstantValue ) {
2102
+ InterfaceType type = constantValue.type;
2103
+ _registry.registerInstantiation (type);
2104
+ return HLoadType .type (type, instance.instructionType);
2105
+ }
2101
2106
return node;
2102
2107
}
2103
2108
2104
- // TODO(sra): Store-forward list literal types.
2109
+ if (instance is HInvokeStatic &&
2110
+ instance.element == commonElements.setRuntimeTypeInfo) {
2111
+ // TODO(sra): What is the 'instantiated type' we should be registering as
2112
+ // discussed above? Perhaps it should be carried on HLiteralList.
2113
+ return instance.inputs.last;
2114
+ }
2105
2115
2106
2116
return node;
2107
2117
}
You can’t perform that action at this time.
0 commit comments