diff options
author | Jan Hubicka <jh@suse.cz> | 2010-06-22 19:06:24 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-06-22 17:06:24 +0000 |
commit | b074e7833ba9c3ff29f71892c5a0b254972eef31 (patch) | |
tree | 184c4ec8600b1f55c0d09eefbfe5f06654150711 /gcc/gimple.h | |
parent | 17bb3f185ac169a8f18902aa2a1cf4c76f0e2af2 (diff) | |
download | gcc-b074e7833ba9c3ff29f71892c5a0b254972eef31.zip gcc-b074e7833ba9c3ff29f71892c5a0b254972eef31.tar.gz gcc-b074e7833ba9c3ff29f71892c5a0b254972eef31.tar.bz2 |
* gimple.h (gimple_expr_code): Do checking on when gimple checking is enabled.
From-SVN: r161207
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r-- | gcc/gimple.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h index 210a622..1b20787 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -1464,10 +1464,11 @@ gimple_expr_code (const_gimple stmt) enum gimple_code code = gimple_code (stmt); if (code == GIMPLE_ASSIGN || code == GIMPLE_COND) return (enum tree_code) stmt->gsbase.subcode; - else if (code == GIMPLE_CALL) - return CALL_EXPR; else - gcc_unreachable (); + { + gcc_gimple_checking_assert (code == GIMPLE_CALL); + return CALL_EXPR; + } } |