Skip to content

Commit

Permalink
Flag label registers as defined when we see a label opcode.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 4, 2008
1 parent eda8541 commit b8526b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mojoshader.c
Expand Up @@ -2947,6 +2947,7 @@ static void state_LABEL(Context *ctx)
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)
Expand Down

0 comments on commit b8526b1

Please sign in to comment.