This prevents an issue where reading the value of the entire variable
afterwards would incorrectly use the old cached load.
if(composite_access)
{
r_expression_result_id = 0;
if(composite_access)
{
r_expression_result_id = 0;
- if(!assignment_source_id)
+ if(assignment_source_id)
+ variable_load_ids.erase(var.declaration);
+ else
{
auto i = variable_load_ids.find(var.declaration);
if(i!=variable_load_ids.end())
{
auto i = variable_load_ids.find(var.declaration);
if(i!=variable_load_ids.end())