aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-gcc.cc
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-08-02 15:52:54 -0400
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:00:28 +0100
commit79b52e69569552551abbcb8ee1436c819bce3979 (patch)
treed53272394d8929cadf898b77da12cd97333b80e9 /gcc/rust/rust-gcc.cc
parentfadf5f59940ddb895b4907730570dc0bae6ec98a (diff)
downloadgcc-79b52e69569552551abbcb8ee1436c819bce3979.zip
gcc-79b52e69569552551abbcb8ee1436c819bce3979.tar.gz
gcc-79b52e69569552551abbcb8ee1436c819bce3979.tar.bz2
gccrs: Remove Backend::bool_type and Backend::char_type
gcc/rust/ChangeLog: * backend/rust-compile-type.cc (TyTyResolveCompile::visit): Inline Backend::bool_type call. * rust-backend.h (Backend::bool_type): Remove. (Backend::char_type): Remove. (Gcc_backend::bool_type): Remove. (Gcc_backend::char_type): Remove. * rust-gcc.cc (Gcc_backend::char_constant_expression): Inline Backend::char_type call. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
-rw-r--r--gcc/rust/rust-gcc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc
index ced1e54..673ddaa 100644
--- a/gcc/rust/rust-gcc.cc
+++ b/gcc/rust/rust-gcc.cc
@@ -873,7 +873,7 @@ Gcc_backend::wchar_constant_expression (wchar_t c)
tree
Gcc_backend::char_constant_expression (char c)
{
- return build_int_cst (this->char_type (), c);
+ return build_int_cst (char_type_node, c);
}
// Make a constant boolean expression.