https://bugs.winehq.org/show_bug.cgi?id=31193
--- Comment #27 from Esme Povirk madewokherd@gmail.com --- With vararg pinvoke implemented I have a new exception:
[0000020c:] EXCEPTION handling: System.InvalidProgramException: Invalid IL code in <Module>:layout.FirstSelectedSkpModel (bool* modopt(System.Runtime.CompilerServices.IsImplicitlyDereferenced)): IL_0088: beq.s IL_008f
The IL code: IL_0083: ldloca.s 11 IL_0085: ldind.i4 IL_0086: ldloca.s 13 IL_0088: beq.s IL_008f
Relevant locals: [11] valuetype 'std._Tree<std::_Tset_traits<layout::Entity *,std::less<layout::Entity *>,std::allocator<layout::Entity *>,0>
'/const_iterator,
[13] valuetype layout.SelectionSet modopt([mscorlib]System.Runtime.CompilerServices.IsConst)
So we're comparing a STACK_I4 to a STACK_PTR.