summaryrefslogtreecommitdiffhomepage
path: root/ir/tr
diff options
context:
space:
mode:
authorAndreas Zwinkau <zwinkau@kit.edu>2016-01-14 16:28:56 +0100
committerAndreas Zwinkau <zwinkau@kit.edu>2016-01-14 16:29:08 +0100
commit24af6079daa7338ff2427c94580267c4847155b3 (patch)
tree6daca26f2b11513fa8e34886d2b9cff767cb5bbc /ir/tr
parentccc99db0dcaafcd4bf32f378bfe555a6d9a7cdd0 (diff)
verifier gives a little bit more info
Diffstat (limited to 'ir/tr')
-rw-r--r--ir/tr/trverify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/tr/trverify.c b/ir/tr/trverify.c
index 925013e..5e19b38 100644
--- a/ir/tr/trverify.c
+++ b/ir/tr/trverify.c
@@ -144,7 +144,7 @@ static bool check_initializer(const ir_initializer_t *initializer,
case IR_INITIALIZER_TARVAL: {
ir_tarval *tv = get_initializer_tarval_value(initializer);
if (get_type_mode(type) != get_tarval_mode(tv)) {
- report_error("initializer for entity %+F has wrong mode", context);
+ report_error("tarval initializer for entity %+F has wrong mode: %+F vs %+F", context, get_type_mode(type), get_tarval_mode(tv));
fine = false;
}
return fine;
@@ -152,7 +152,7 @@ static bool check_initializer(const ir_initializer_t *initializer,
case IR_INITIALIZER_CONST: {
ir_node *value = get_initializer_const_value(initializer);
if (get_type_mode(type) != get_irn_mode(value)) {
- report_error("initializer for entity %+F has wrong mode", context);
+ report_error("const initializer for entity %+F has wrong mode: %+F vs %+F", context, get_type_mode(type), get_irn_mode(value));
fine = false;
}
if (!constant_on_correct_irg(value)) {