Flag label registers as defined when we see a label opcode. trunk
authorRyan C. Gordon <icculus@icculus.org>
Fri, 04 Apr 2008 08:15:11 -0400
branchtrunk
changeset 86 7ba273139ea6
parent 85 c6d6f4d0c596
child 87 8b5845aac521
Flag label registers as defined when we see a label opcode.
mojoshader.c
--- a/mojoshader.c	Fri Apr 04 08:13:53 2008 -0400
+++ b/mojoshader.c	Fri Apr 04 08:15:11 2008 -0400
@@ -2947,6 +2947,7 @@
     if (ctx->previous_opcode != OPCODE_RET)
         fail(ctx, "LABEL not followed by a RET");
     check_label_register(ctx, 0, "LABEL");
+    set_defined_register(ctx, REG_TYPE_LABEL, ctx->source_args[0].regnum);
 } // state_LABEL
 
 static void state_CALL(Context *ctx)