inline variable
authorJb Evain <jbevain@gmail.com>
Mon, 28 Apr 2008 18:24:38 +0000 (18:24 -0000)
committerJb Evain <jbevain@gmail.com>
Mon, 28 Apr 2008 18:24:38 +0000 (18:24 -0000)
svn path=/trunk/mcs/; revision=102062

mcs/class/System.Core/System.Linq.Expressions/EmitContext.cs

index 66f77574e53e0a16b87d67a8f1e41ddc827a20c4..fcc155a05d518556fab6cb2c42b0766a2f852844 100644 (file)
@@ -182,9 +182,7 @@ namespace System.Linq.Expressions {
 
                        ig.Emit (OpCodes.Ldfld, typeof (ExecutionScope).GetField ("Globals"));
 
-                       int index = AddGlobal (global, type);
-
-                       ig.Emit (OpCodes.Ldc_I4, index);
+                       ig.Emit (OpCodes.Ldc_I4, AddGlobal (global, type));
                        ig.Emit (OpCodes.Ldelem, typeof (object));
 
                        var strongbox = type.MakeStrongBoxType ();