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, 2 insertions, 0 deletions
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc
index bfa7609..748aa5a 100644
--- a/gcc/rust/rust-gcc.cc
+++ b/gcc/rust/rust-gcc.cc
@@ -225,6 +225,8 @@ public:
return this->make_expression (null_pointer_node);
}
+ Bexpression *unit_expression () { return this->make_expression (void_node); }
+
Bexpression *var_expression (Bvariable *var, Location);
Bexpression *indirect_expression (Btype *, Bexpression *expr,