diff options
Diffstat (limited to 'mcs/gmcs/ecore.cs')
-rw-r--r-- | mcs/gmcs/ecore.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mcs/gmcs/ecore.cs b/mcs/gmcs/ecore.cs index fa7452cbe25..7ac0acb4cec 100644 --- a/mcs/gmcs/ecore.cs +++ b/mcs/gmcs/ecore.cs @@ -3381,7 +3381,8 @@ namespace Mono.CSharp { if (FieldInfo.IsStatic){ ig.Emit (OpCodes.Ldsflda, FieldInfo); } else { - EmitInstance (ec, false); + if (!prepared) + EmitInstance (ec, false); ig.Emit (OpCodes.Ldflda, FieldInfo); } } |