d3dcompiler: Avoid using the lookahead token for location.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2573e698ff
commit
53e6b328f6
|
@ -2035,7 +2035,7 @@ primary_expr: C_FLOAT
|
||||||
YYABORT;
|
YYABORT;
|
||||||
}
|
}
|
||||||
c->node.type = HLSL_IR_CONSTANT;
|
c->node.type = HLSL_IR_CONSTANT;
|
||||||
c->node.loc = get_location(&yylloc);
|
c->node.loc = get_location(&@1);
|
||||||
c->node.data_type = new_hlsl_type(d3dcompiler_strdup("float"), HLSL_CLASS_SCALAR, HLSL_TYPE_FLOAT, 1, 1);
|
c->node.data_type = new_hlsl_type(d3dcompiler_strdup("float"), HLSL_CLASS_SCALAR, HLSL_TYPE_FLOAT, 1, 1);
|
||||||
c->v.value.f[0] = $1;
|
c->v.value.f[0] = $1;
|
||||||
if (!($$ = make_list(&c->node)))
|
if (!($$ = make_list(&c->node)))
|
||||||
|
@ -2050,7 +2050,7 @@ primary_expr: C_FLOAT
|
||||||
YYABORT;
|
YYABORT;
|
||||||
}
|
}
|
||||||
c->node.type = HLSL_IR_CONSTANT;
|
c->node.type = HLSL_IR_CONSTANT;
|
||||||
c->node.loc = get_location(&yylloc);
|
c->node.loc = get_location(&@1);
|
||||||
c->node.data_type = new_hlsl_type(d3dcompiler_strdup("int"), HLSL_CLASS_SCALAR, HLSL_TYPE_INT, 1, 1);
|
c->node.data_type = new_hlsl_type(d3dcompiler_strdup("int"), HLSL_CLASS_SCALAR, HLSL_TYPE_INT, 1, 1);
|
||||||
c->v.value.i[0] = $1;
|
c->v.value.i[0] = $1;
|
||||||
if (!($$ = make_list(&c->node)))
|
if (!($$ = make_list(&c->node)))
|
||||||
|
@ -2065,7 +2065,7 @@ primary_expr: C_FLOAT
|
||||||
YYABORT;
|
YYABORT;
|
||||||
}
|
}
|
||||||
c->node.type = HLSL_IR_CONSTANT;
|
c->node.type = HLSL_IR_CONSTANT;
|
||||||
c->node.loc = get_location(&yylloc);
|
c->node.loc = get_location(&@1);
|
||||||
c->node.data_type = new_hlsl_type(d3dcompiler_strdup("bool"), HLSL_CLASS_SCALAR, HLSL_TYPE_BOOL, 1, 1);
|
c->node.data_type = new_hlsl_type(d3dcompiler_strdup("bool"), HLSL_CLASS_SCALAR, HLSL_TYPE_BOOL, 1, 1);
|
||||||
c->v.value.b[0] = $1;
|
c->v.value.b[0] = $1;
|
||||||
if (!($$ = make_list(&c->node)))
|
if (!($$ = make_list(&c->node)))
|
||||||
|
|
Loading…
Reference in New Issue