Bugzilla – Attachment 267946 Details for
Bug 469742
System.NullReferenceException when generics used
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
[patch]
Proposed patch.
fix-ldnull-unboxany-stloc.diff (text/plain), 771 bytes, created by
Mark Probst
on 2009-01-27 15:16:05 UTC
(
hide
)
Description:
Proposed patch.
Filename:
MIME Type:
Creator:
Mark Probst
Created:
2009-01-27 15:16:05 UTC
Size:
771 bytes
patch
obsolete
>Index: mini/method-to-ir.c >=================================================================== >--- mini/method-to-ir.c (revision 124562) >+++ mini/method-to-ir.c (working copy) >@@ -4978,17 +4978,7 @@ > emit_stloc_ir (MonoCompile *cfg, MonoInst **sp, MonoMethodHeader *header, int n) > { > MonoInst *ins; >- guint32 opcode = mono_type_to_regmove (cfg, header->locals [n]); >- if ((opcode == OP_MOVE) && ((sp [0]->opcode == OP_ICONST) || (sp [0]->opcode == OP_I8CONST))) { >- /* Optimize reg-reg moves away */ >- /* >- * Can't optimize other opcodes, since sp[0] might point to >- * the last ins of a decomposed opcode. >- */ >- sp [0]->dreg = (cfg)->locals [n]->dreg; >- } else { >- EMIT_NEW_LOCSTORE (cfg, ins, n, *sp); >- } >+ EMIT_NEW_LOCSTORE (cfg, ins, n, *sp); > } > > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 469742
:
267890
|
267946
|
268005