aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWink Saville <wink@saville.com>2018-08-07 20:18:26 -0700
committerAndrew Kelley <superjoe30@gmail.com>2018-08-07 23:18:26 -0400
commitd927f347de1f5a19545fc235f8779c2326409543 (patch)
tree68347916c61b94562dba740cf4ac0fe27a358d4d /src
parenta583beb76c4c52db6e91b3543c562a437d2a488e (diff)
downloadzig-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')
-rw-r--r--src/ir.cpp2
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;