diff options
| author | Wink Saville <wink@saville.com> | 2018-08-07 20:18:26 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-08-07 23:18:26 -0400 |
| commit | d927f347de1f5a19545fc235f8779c2326409543 (patch) | |
| tree | 68347916c61b94562dba740cf4ac0fe27a358d4d /src/ir.cpp | |
| parent | a583beb76c4c52db6e91b3543c562a437d2a488e (diff) | |
| download | zig-d927f347de1f5a19545fc235f8779c2326409543.tar.gz zig-d927f347de1f5a19545fc235f8779c2326409543.zip | |
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).
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 3e423487aa..d9df5772db 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -20591,7 +20591,7 @@ static TypeTableEntry *ir_analyze_instruction_atomic_rmw(IrAnalyze *ira, IrInstr return ira->codegen->builtin_types.entry_invalid; IrInstruction *casted_operand = ir_implicit_cast(ira, operand, operand_type); - if (type_is_invalid(casted_ptr->value.type)) + if (type_is_invalid(casted_operand->value.type)) return ira->codegen->builtin_types.entry_invalid; AtomicOrder ordering; |
