Skip to content

Commit

Permalink
Use the dynamic assembly instead of CoreLib for the "module" referenc…
Browse files Browse the repository at this point in the history
…e for DynamicMethods in Mono.
  • Loading branch information
jkoritzinsky committed Feb 9, 2022
1 parent 1eaf8b6 commit ac825ab
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit ac825ab

Please sign in to comment.