We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00cc119 commit c1efb32Copy full SHA for c1efb32
src/CLR/Core/Execution.cpp
@@ -1963,10 +1963,17 @@ HRESULT CLR_RT_ExecutionEngine::InitializeLocals(
1963
// otherwise the comparison won't be possible
1964
sig--;
1965
1966
- if (!assembly->FindTypeSpec(sig, typeSpecIndex))
1967
- {
1968
- NANOCLR_SET_AND_LEAVE(CLR_E_WRONG_TYPE);
1969
- }
+ // Parse the TypeSpec signature to get the instantiated element
+ CLR_RT_SignatureParser sp;
+ sp.Initialize_TypeSpec(assembly, sig);
+
1970
+ CLR_RT_SignatureParser::Element element;
1971
+ NANOCLR_CHECK_HRESULT(sp.Advance(element));
1972
1973
+ // element.Class and element.DataType represent the T
1974
+ cls = element.Class;
1975
+ dt = element.DataType;
1976
1977
goto done;
1978
1979
case DATATYPE_VAR:
0 commit comments