aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-tyty.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/backend/rust-compile-tyty.h')
-rw-r--r--gcc/rust/backend/rust-compile-tyty.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/rust/backend/rust-compile-tyty.h b/gcc/rust/backend/rust-compile-tyty.h
index ba98ac0..8576235 100644
--- a/gcc/rust/backend/rust-compile-tyty.h
+++ b/gcc/rust/backend/rust-compile-tyty.h
@@ -42,8 +42,6 @@ public:
return compiler.translated;
}
- ~TyTyCompile () {}
-
void visit (TyTy::ErrorType &) override { gcc_unreachable (); }
void visit (TyTy::InferType &) override { gcc_unreachable (); }
@@ -53,7 +51,7 @@ public:
void visit (TyTy::TupleType &type) override
{
if (type.num_fields () == 0)
- translated = backend->void_type ();
+ translated = backend->unit_type ();
else
gcc_unreachable ();
}
@@ -224,7 +222,7 @@ public:
void visit (TyTy::NeverType &) override
{
- translated = backend->void_type ();
+ translated = backend->unit_type ();
}
private: