aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-gcc.cc
diff options
context:
space:
mode:
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 dfdfe8a5..60923d1 100644
--- a/gcc/rust/rust-gcc.cc
+++ b/gcc/rust/rust-gcc.cc
@@ -122,7 +122,7 @@ public:
static tree unit_type;
if (unit_type == nullptr)
{
- auto unit_type_node = integer_type (true, 0);
+ auto unit_type_node = struct_type ({});
unit_type = named_type ("()", unit_type_node,
::Linemap::predeclared_location ());
}