]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(fold): Don't try to process an RTL_EXPR.
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 7 Sep 1993 18:32:05 +0000 (14:32 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 7 Sep 1993 18:32:05 +0000 (14:32 -0400)
From-SVN: r5274

gcc/fold-const.c

index 81b938813e80708c2c445487755e4bb9b7030a73..4f0e8b89de3e3c40357fb837b88cec8626370fb6 100644 (file)
@@ -3070,6 +3070,10 @@ fold (expr)
 
   int wins = 1;
 
+  /* Don't try to process an RTL_EXPR since its operands aren't trees.  */
+  if (code == RTL_EXPR)
+    return t;
+
   /* Return right away if already constant.  */
   if (TREE_CONSTANT (t))
     {