Commit b142ec3
authored
Fix LDTOKEN in interpreter (#116234)
The CEE_LDTOKEN compilation incorrectly assumes that the resolved token
contains either hClass or hField or hMethod and it checks for the hClass
first. But the hClass is present always, so resolving token for method
or field doesn't work correctly.
This change fixes it by reordering the checks in an order matching what JIT
does.1 parent 9d1d2a9 commit b142ec3
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4226 | 4226 | | |
4227 | 4227 | | |
4228 | 4228 | | |
4229 | | - | |
| 4229 | + | |
4230 | 4230 | | |
4231 | | - | |
4232 | | - | |
| 4231 | + | |
| 4232 | + | |
4233 | 4233 | | |
4234 | 4234 | | |
4235 | 4235 | | |
4236 | 4236 | | |
4237 | 4237 | | |
4238 | 4238 | | |
4239 | | - | |
| 4239 | + | |
4240 | 4240 | | |
4241 | | - | |
4242 | | - | |
| 4241 | + | |
| 4242 | + | |
4243 | 4243 | | |
4244 | 4244 | | |
4245 | 4245 | | |
| |||
0 commit comments