aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc/elna-tree.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gcc/elna-tree.cc')
-rw-r--r--gcc/gcc/elna-tree.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcc/elna-tree.cc b/gcc/gcc/elna-tree.cc
index 26936fe..c47bb94 100644
--- a/gcc/gcc/elna-tree.cc
+++ b/gcc/gcc/elna-tree.cc
@@ -252,7 +252,7 @@ namespace elna::gcc
{
return DECL_INITIAL(expression);
}
- else if (TREE_CODE_CLASS(code) == tcc_constant)
+ else if (TREE_CODE_CLASS(code) == tcc_constant || TREE_CONSTANT(expression))
{
return expression;
}