Commit 9cbd80bd authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dcompiler: Store the pointer to the struct field in the dereference node.

parent f2d2755e
...@@ -903,7 +903,7 @@ struct hlsl_ir_deref ...@@ -903,7 +903,7 @@ struct hlsl_ir_deref
struct struct
{ {
struct hlsl_ir_node *record; struct hlsl_ir_node *record;
const char *field; struct hlsl_struct_field *field;
} record; } record;
} v; } v;
}; };
......
...@@ -1912,7 +1912,7 @@ static void debug_dump_ir_deref(const struct hlsl_ir_deref *deref) ...@@ -1912,7 +1912,7 @@ static void debug_dump_ir_deref(const struct hlsl_ir_deref *deref)
break; break;
case HLSL_IR_DEREF_RECORD: case HLSL_IR_DEREF_RECORD:
debug_dump_instr(deref->v.record.record); debug_dump_instr(deref->v.record.record);
TRACE(".%s", debugstr_a(deref->v.record.field)); TRACE(".%s", debugstr_a(deref->v.record.field->name));
break; break;
} }
} }
...@@ -2261,7 +2261,6 @@ static void free_ir_deref(struct hlsl_ir_deref *deref) ...@@ -2261,7 +2261,6 @@ static void free_ir_deref(struct hlsl_ir_deref *deref)
break; break;
case HLSL_IR_DEREF_RECORD: case HLSL_IR_DEREF_RECORD:
free_instr(deref->v.record.record); free_instr(deref->v.record.record);
d3dcompiler_free((void *)deref->v.record.field);
break; break;
} }
d3dcompiler_free(deref); d3dcompiler_free(deref);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment