Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
d25486fb
Commit
d25486fb
authored
May 02, 2014
by
Matteo Bruni
Committed by
Alexandre Julliard
May 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Pre/post increment/decrement operators are unary.
parent
89cac9c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
d3dcompiler_private.h
dlls/d3dcompiler_43/d3dcompiler_private.h
+5
-5
hlsl.y
dlls/d3dcompiler_43/hlsl.y
+4
-4
No files found.
dlls/d3dcompiler_43/d3dcompiler_private.h
View file @
d25486fb
...
...
@@ -826,6 +826,11 @@ enum hlsl_ir_expr_op {
HLSL_IR_UNOP_SAT
,
HLSL_IR_UNOP_PREINC
,
HLSL_IR_UNOP_PREDEC
,
HLSL_IR_UNOP_POSTINC
,
HLSL_IR_UNOP_POSTDEC
,
HLSL_IR_BINOP_ADD
,
HLSL_IR_BINOP_SUB
,
HLSL_IR_BINOP_MUL
,
...
...
@@ -856,11 +861,6 @@ enum hlsl_ir_expr_op {
HLSL_IR_BINOP_POW
,
HLSL_IR_BINOP_PREINC
,
HLSL_IR_BINOP_PREDEC
,
HLSL_IR_BINOP_POSTINC
,
HLSL_IR_BINOP_POSTDEC
,
HLSL_IR_TEROP_LERP
,
HLSL_IR_SEQUENCE
,
...
...
dlls/d3dcompiler_43/hlsl.y
View file @
d25486fb
...
...
@@ -1848,7 +1848,7 @@ postfix_expr: primary_expr
}
operands[0] = $1;
operands[1] = operands[2] = NULL;
$$ = &new_expr(HLSL_IR_
BI
NOP_POSTINC, operands, &loc)->node;
$$ = &new_expr(HLSL_IR_
U
NOP_POSTINC, operands, &loc)->node;
/* Post increment/decrement expressions are considered const */
$$->data_type = clone_hlsl_type($$->data_type);
$$->data_type->modifiers |= HLSL_MODIFIER_CONST;
...
...
@@ -1867,7 +1867,7 @@ postfix_expr: primary_expr
}
operands[0] = $1;
operands[1] = operands[2] = NULL;
$$ = &new_expr(HLSL_IR_
BI
NOP_POSTDEC, operands, &loc)->node;
$$ = &new_expr(HLSL_IR_
U
NOP_POSTDEC, operands, &loc)->node;
/* Post increment/decrement expressions are considered const */
$$->data_type = clone_hlsl_type($$->data_type);
$$->data_type->modifiers |= HLSL_MODIFIER_CONST;
...
...
@@ -2040,7 +2040,7 @@ unary_expr: postfix_expr
}
operands[0] = $2;
operands[1] = operands[2] = NULL;
$$ = &new_expr(HLSL_IR_
BI
NOP_PREINC, operands, &loc)->node;
$$ = &new_expr(HLSL_IR_
U
NOP_PREINC, operands, &loc)->node;
}
| OP_DEC unary_expr
{
...
...
@@ -2056,7 +2056,7 @@ unary_expr: postfix_expr
}
operands[0] = $2;
operands[1] = operands[2] = NULL;
$$ = &new_expr(HLSL_IR_
BI
NOP_PREDEC, operands, &loc)->node;
$$ = &new_expr(HLSL_IR_
U
NOP_PREDEC, operands, &loc)->node;
}
| unary_op unary_expr
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment