diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-03-04 13:46:30 +0000 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-03-07 12:06:20 +0000 |
commit | be94ef6e2d7ce29896c3e2861a8506479dfd55b5 (patch) | |
tree | 5aa8c4d1d8f934ec7ecbd39e6d1443dbb0dfc741 /gcc/rust/rust-gcc.cc | |
parent | 7a3c935c0f220835c001307944587a84c5af0192 (diff) | |
download | gcc-be94ef6e2d7ce29896c3e2861a8506479dfd55b5.zip gcc-be94ef6e2d7ce29896c3e2861a8506479dfd55b5.tar.gz gcc-be94ef6e2d7ce29896c3e2861a8506479dfd55b5.tar.bz2 |
Change unit-type to be an empty struct so that we do not disregard the
initilizer of variables
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
-rw-r--r-- | gcc/rust/rust-gcc.cc | 2 |
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 ()); } |