aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/gcc/elna-tree.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gcc/elna-tree.cc b/gcc/gcc/elna-tree.cc
index 69ef37f..10efb90 100644
--- a/gcc/gcc/elna-tree.cc
+++ b/gcc/gcc/elna-tree.cc
@@ -280,7 +280,7 @@ namespace elna::gcc
if (literal_value.is_signed())
{
- if (auto converted = literal_value.to_signed())
+ if (auto converted = literal_value.try_to<std::ptrdiff_t>())
{
return build_int_cst(elna_int_type_node, *converted);
}
@@ -288,7 +288,7 @@ namespace elna::gcc
}
else
{
- if (auto converted = literal_value.to_unsigned())
+ if (auto converted = literal_value.try_to<std::size_t>())
{
return build_int_cstu(elna_word_type_node, *converted);
}