projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
741fa51
)
[mono][interp] Fix type pushed by mkrefanytype (#81261)
author
Vlad Brezae
<brezaevlad@gmail.com>
Fri, 27 Jan 2023 13:57:58 +0000
(15:57 +0200)
committer
GitHub
<noreply@github.com>
Fri, 27 Jan 2023 13:57:58 +0000
(15:57 +0200)
This instruction pushes a RuntimeTypeHandle.
src/mono/mono/mini/interp/transform.c
patch
|
blob
|
history
diff --git
a/src/mono/mono/mini/interp/transform.c
b/src/mono/mono/mini/interp/transform.c
index
572b6d7
..
0fda118
100644
(file)
--- a/
src/mono/mono/mini/interp/transform.c
+++ b/
src/mono/mono/mini/interp/transform.c
@@
-7899,7
+7899,7
@@
generate_code (TransformData *td, MonoMethod *method, MonoMethodHeader *header,
interp_add_ins (td, MINT_REFANYTYPE);
td->sp--;
interp_ins_set_sreg (td->last_ins, td->sp [0].local);
- push_
simple_type (td, STACK_TYPE_I
);
+ push_
type_vt (td, mono_defaults.typehandle_class, mono_class_value_size (mono_defaults.typehandle_class, NULL)
);
interp_ins_set_dreg (td->last_ins, td->sp [-1].local);
++td->ip;
break;