* ILGenerator.cs (label_fixup): Check for unmarked labels.
Fixes #536243.
svn path=/trunk/mcs/; revision=141176
+2009-09-02 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * ILGenerator.cs (label_fixup): Check for unmarked labels.
+ Fixes #536243.
+
2009-08-06 Rodrigo Kumpera <rkumpera@novell.com>
* MethodBuilder.cs: Mark generic_params internal.
internal void label_fixup ()
{
for (int i = 0; i < num_fixups; ++i) {
-
+ if (labels [fixups [i].label_idx].addr < 0)
+ throw new ArgumentException ("Label not marked");
// Diff is the offset from the end of the jump instruction to the address of the label
int diff = labels [fixups [i].label_idx].addr - (fixups [i].pos + fixups [i].offset);
if (fixups [i].offset == 1) {