From 611fbe24b7e459829c0a304a58963d4987c8de0a Mon Sep 17 00:00:00 2001
From: Thomas Schwinge <thomas@codesourcery.com>
Date: Thu, 26 Mar 2020 21:22:54 +0100
Subject: [PATCH] Fold 'NON_LVALUE_EXPR' some more
---
gcc/cp/constexpr.c | 1 +
gcc/fold-const.c | 1 +
2 files changed, 2 insertions(+)
@@ -6650,6 +6650,7 @@ fold_simple_1 (tree t)
case BIT_NOT_EXPR:
case TRUTH_NOT_EXPR:
case NOP_EXPR:
+ case NON_LVALUE_EXPR:
case VIEW_CONVERT_EXPR:
case CONVERT_EXPR:
case FLOAT_EXPR:
@@ -1739,6 +1739,7 @@ const_unop (enum tree_code code, tree type, tree arg0)
switch (code)
{
CASE_CONVERT:
+ case NON_LVALUE_EXPR:
case FLOAT_EXPR:
case FIX_TRUNC_EXPR:
case FIXED_CONVERT_EXPR:
--
2.17.1