diff options
author | Stefan Weil <sw@weilnetz.de> | 2013-07-25 18:21:28 +0200 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2013-07-27 11:22:54 +0400 |
commit | dfc6f86567c58bc4dd02f4db098fc4c2221e85b5 (patch) | |
tree | d493db0a108de25c7d2afaab885ec2d39ffe2c74 /target-arm | |
parent | b031f413b9e68899032f04fc05fd0a6b62039b2b (diff) |
misc: Use g_assert_not_reached for code which is expected to be unreachable
The macro g_assert_not_reached is a better self documenting replacement
for assert(0) or assert(false).
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'target-arm')
-rw-r--r-- | target-arm/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-arm/helper.c b/target-arm/helper.c index b0c3ca1fbe..4968391b83 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -1653,7 +1653,7 @@ void define_one_arm_cp_reg_with_opaque(ARMCPU *cpu, "was %s, now %s\n", r2->cp, 32 + 32 * is64, r2->crn, r2->crm, r2->opc1, r2->opc2, oldreg->name, r2->name); - assert(0); + g_assert_not_reached(); } } g_hash_table_insert(cpu->cp_regs, key, r2); |