* ILGenerator.cs: Fix the exception thrown when LocalBuilders are
mixed between ILGenerators.
svn path=/trunk/mcs/; revision=138709
+2009-07-26 Miguel de Icaza <miguel@novell.com>
+
+ * ILGenerator.cs: Fix the exception thrown when LocalBuilders are
+ mixed between ILGenerators.
+
2009-07-24 Rodrigo Kumpera <rkumpera@novell.com>
* TypeBuilder.cs: Make the interfaces field internal.
make_room (6);
if (local.ilgen != this)
- throw new Exception ("Trying to emit a local from a different ILGenerator.");
+ throw new ArgumentException ("Trying to emit a local from a different ILGenerator.");
/* inline the code from ll_emit () to optimize il code size */
if (opcode.StackBehaviourPop == StackBehaviour.Pop1) {