diff options
| author | Vexu <git@vexu.eu> | 2020-03-10 22:46:19 +0200 |
|---|---|---|
| committer | Vexu <git@vexu.eu> | 2020-03-10 22:54:47 +0200 |
| commit | ee5b00a8b90ef375d0cd4432d31e3a4ed0b6f632 (patch) | |
| tree | c775663438485092fca336a68a5bcbbc047de818 /src/ir.cpp | |
| parent | 8dc188ebe06b5b78dcead521561858fc27e25204 (diff) | |
| download | zig-ee5b00a8b90ef375d0cd4432d31e3a4ed0b6f632.tar.gz zig-ee5b00a8b90ef375d0cd4432d31e3a4ed0b6f632.zip | |
use atomic bools in std lib
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index c6978ca0a9..cad1d382e1 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -28397,15 +28397,15 @@ static IrInstGen *ir_analyze_instruction_atomic_rmw(IrAnalyze *ira, IrInstSrcAto if (operand_type->id == ZigTypeIdEnum && op != AtomicRmwOp_xchg) { ir_add_error(ira, &instruction->op->base, - buf_sprintf("@atomicRmw on enum only works with .Xchg")); + buf_sprintf("@atomicRmw with enum only allowed with .Xchg")); return ira->codegen->invalid_inst_gen; } else if (operand_type->id == ZigTypeIdBool && op != AtomicRmwOp_xchg) { ir_add_error(ira, &instruction->op->base, - buf_sprintf("@atomicRmw on bool only works with .Xchg")); + buf_sprintf("@atomicRmw with bool only allowed with .Xchg")); return ira->codegen->invalid_inst_gen; } else if (operand_type->id == ZigTypeIdFloat && op > AtomicRmwOp_sub) { ir_add_error(ira, &instruction->op->base, - buf_sprintf("@atomicRmw with float only works with .Xchg, .Add and .Sub")); + buf_sprintf("@atomicRmw with float only allowed with .Xchg, .Add and .Sub")); return ira->codegen->invalid_inst_gen; } |
