summaryrefslogtreecommitdiff
path: root/gcc/rtlhooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rtlhooks.c')
-rw-r--r--gcc/rtlhooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rtlhooks.c b/gcc/rtlhooks.c
index b27cecea2ca..a32d1c06b44 100644
--- a/gcc/rtlhooks.c
+++ b/gcc/rtlhooks.c
@@ -43,7 +43,7 @@ gen_lowpart_general (enum machine_mode mode, rtx x)
if (result)
return result;
- else if (GET_CODE (x) == REG)
+ else if (REG_P (x))
{
/* Must be a hard reg that's not valid in MODE. */
result = gen_lowpart_common (mode, copy_to_reg (x));