aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-04-22 14:42:46 -0400
committerGitHub <noreply@github.com>2020-04-22 14:42:46 -0400
commite8545db9d4ced8978c5594c637d9bf76dc26209d (patch)
treec51f45b9374f9313636039e6e43310bf81cc359f /src/ir.cpp
parentb5e72c0148e40df418bdc8e1770b1bd42e76732e (diff)
parent1eda2ada9ac115c9dbff1bba60b3670f3fbfff57 (diff)
downloadzig-e8545db9d4ced8978c5594c637d9bf76dc26209d.tar.gz
zig-e8545db9d4ced8978c5594c637d9bf76dc26209d.zip
Merge pull request #5130 from ziglang/stage2-ir
beginnings of non-LLVM self-hosted backend
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index cdb86e5b15..0fcbc1be10 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -11283,9 +11283,9 @@ static bool ir_num_lit_fits_in_other_type(IrAnalyze *ira, IrInstGen *instruction
Buf *val_buf = buf_alloc();
bigint_append_buf(val_buf, &const_val->data.x_bigint, 10);
ir_add_error_node(ira, instruction->base.source_node,
- buf_sprintf("integer value %s has no representation in type '%s'",
- buf_ptr(val_buf),
- buf_ptr(&other_type->name)));
+ buf_sprintf("type %s cannot represent integer value %s",
+ buf_ptr(&other_type->name),
+ buf_ptr(val_buf)));
return false;
}
if (other_type->data.floating.bit_count >= const_val->type->data.floating.bit_count) {