Skip to content
Prev Previous commit
Next Next commit
Use the dynamic assembly instead of CoreLib for the "module" referenc…
…e for DynamicMethods in Mono.
  • Loading branch information
jkoritzinsky committed Feb 9, 2022
commit ac825ab0678f07bfd6c161e4ea4413af84df9293
2 changes: 1 addition & 1 deletion src/mono/mono/mini/method-to-ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -7180,7 +7180,7 @@ mono_method_to_ir (MonoCompile *cfg, MonoMethod *method, MonoBasicBlock *start_b
* FIXME: This is very slow, need to create a wrapper at JIT time
* instead based on the signature.
*/
EMIT_NEW_IMAGECONST (cfg, args [0], m_class_get_image (method->klass));
EMIT_NEW_IMAGECONST (cfg, args [0], ((MonoDynamicMethod*)method)->assembly->image);
EMIT_NEW_PCONST (cfg, args [1], fsig);
args [2] = addr;
// FIXME tailcall?
Expand Down