Closed yowl closed 1 year ago
Token is 0x7000000
Yes, this is token for the empty string.
This looks like that the token is getting resolved in a wrong context. Token from inlinee getting resolved in main method context?
Actually, it looks like that constructStringLiteral
is missing some changes in the LLVM branch.
vs.
Thanks, that was it. I've merged that commit and it removes the problem
With optimisation on and inlining, we get the attached dump for
<Boxed>S_P_CoreLib_System_Numerics_Vector_1<Int32>__<unbox>S_P_CoreLib_System_Numerics_Vector_1__Equals
The NativeAOT-LLVM RyuJIT backend throws an
IndexOutOfRangeException
at https://github.com/dotnet/runtimelab/blob/555ac7dd06e4423983d859a2ef9dcf723422f11b/src/coreclr/tools/Common/TypeSystem/IL/Stubs/ILEmitter.cs#L627 apparently looking for theemptyStringLiteral
for BB21 which looks like an inlinedAssert
. Token is0x7000000
so we get-1
for the index. I have no idea what is special about the this empty string literal, the unbox, the inline... Any idea? Thanks sl.txtstack: