diff options
| author | foobles <buzdav2@gmail.com> | 2020-04-14 15:19:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-14 16:19:45 -0400 |
| commit | 022a71ca7d68d970418a93a5c5b3bec9e1fdf9f2 (patch) | |
| tree | dfc52c034a80f3a3032778595afe1bd90c4194e4 /src/ir.cpp | |
| parent | 5974a887949c46df4bcb025da9369a31447c2f29 (diff) | |
| download | zig-022a71ca7d68d970418a93a5c5b3bec9e1fdf9f2.tar.gz zig-022a71ca7d68d970418a93a5c5b3bec9e1fdf9f2.zip | |
Shift error message now says "fixed-width integer type" instead of just "integer type" (#5028)
* error message of ir_analyze_bit_shift now more accurate/specific
* fixed compile error test to match bit shift error message
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 b9438dda38..eb7308e8f5 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -16974,7 +16974,7 @@ static IrInstGen *ir_analyze_bit_shift(IrAnalyze *ira, IrInstSrcBinOp *bin_op_in if (!instr_is_comptime(op2)) { ir_add_error(ira, &bin_op_instruction->base.base, - buf_sprintf("LHS of shift must be an integer type, or RHS must be compile-time known")); + buf_sprintf("LHS of shift must be a fixed-width integer type, or RHS must be compile-time known")); return ira->codegen->invalid_inst_gen; } |
