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.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gcc/elna-tree.cc b/gcc/gcc/elna-tree.cc
index 688fc4a..255cf60 100644
--- a/gcc/gcc/elna-tree.cc
+++ b/gcc/gcc/elna-tree.cc
@@ -259,7 +259,7 @@ namespace elna::gcc
{
if (auto converted = literal_value.try_to<std::ptrdiff_t>())
{
- return build_int_cst(elna_int_type_node, *converted);
+ return build_int_cst(type, *converted);
}
return NULL_TREE;
}
@@ -267,7 +267,7 @@ namespace elna::gcc
{
if (auto converted = literal_value.try_to<std::size_t>())
{
- return build_int_cstu(elna_word_type_node, *converted);
+ return build_int_cstu(type, *converted);
}
return NULL_TREE;
}