summaryrefslogtreecommitdiff
path: root/gcc/rtlhooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rtlhooks.c')
-rw-r--r--gcc/rtlhooks.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/rtlhooks.c b/gcc/rtlhooks.c
index 5cb14efd140..49d4cfe7c59 100644
--- a/gcc/rtlhooks.c
+++ b/gcc/rtlhooks.c
@@ -47,15 +47,16 @@ gen_lowpart_general (enum machine_mode mode, rtx x)
{
/* Must be a hard reg that's not valid in MODE. */
result = gen_lowpart_common (mode, copy_to_reg (x));
- if (result == 0)
- abort ();
+ gcc_assert (result != 0);
return result;
}
- else if (MEM_P (x))
+ else
{
- /* The only additional case we can do is MEM. */
int offset = 0;
+ /* The only additional case we can do is MEM. */
+ gcc_assert (MEM_P (x));
+
/* The following exposes the use of "x" to CSE. */
if (GET_MODE_SIZE (GET_MODE (x)) <= UNITS_PER_WORD
&& SCALAR_INT_MODE_P (GET_MODE (x))
@@ -76,8 +77,6 @@ gen_lowpart_general (enum machine_mode mode, rtx x)
return adjust_address (x, mode, offset);
}
- else
- abort ();
}
rtx