authorgravatar for wink@saville.comWink Saville <wink@saville.com> 2018-08-07 20:18:26-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-08-07 23:18:26-04:00
logd927f347de1f5a19545fc235f8779c2326409543
tree68347916c61b94562dba740cf4ac0fe27a358d4d
parenta583beb76c4c52db6e91b3543c562a437d2a488e

Fix ir_analyze_instruction_atomic_rmw (#1351)

There were two tests of type_is_valid(casted_ptr->value.type) change the second one to type_is_valie(casted_operand->value.type).

1 files changed, 1 insertions(+), 1 deletions(-)

src/ir.cpp+1-1
...@@ -20591,7 +20591,7 @@ static TypeTableEntry *ir_analyze_instruction_atomic_rmw(IrAnalyze *ira, IrInstr...@@ -20591,7 +20591,7 @@ static TypeTableEntry *ir_analyze_instruction_atomic_rmw(IrAnalyze *ira, IrInstr
20591 return ira->codegen->builtin_types.entry_invalid;20591 return ira->codegen->builtin_types.entry_invalid;
2059220592
20593 IrInstruction *casted_operand = ir_implicit_cast(ira, operand, operand_type);20593 IrInstruction *casted_operand = ir_implicit_cast(ira, operand, operand_type);
20594 if (type_is_invalid(casted_ptr->value.type))20594 if (type_is_invalid(casted_operand->value.type))
20595 return ira->codegen->builtin_types.entry_invalid;20595 return ira->codegen->builtin_types.entry_invalid;
2059620596
20597 AtomicOrder ordering;20597 AtomicOrder ordering;