aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
-rw-r--r--gcc/rust/backend/rust-compile-expr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rust/backend/rust-compile-expr.h b/gcc/rust/backend/rust-compile-expr.h
index 2a147ab..4658295 100644
--- a/gcc/rust/backend/rust-compile-expr.h
+++ b/gcc/rust/backend/rust-compile-expr.h
@@ -80,7 +80,7 @@ public:
}
translated
- = ctx->get_backend ()->constructor_expression (tuple_type, vals,
+ = ctx->get_backend ()->constructor_expression (tuple_type, vals, -1,
expr.get_locus ());
}
@@ -595,6 +595,7 @@ public:
translated
= ctx->get_backend ()->constructor_expression (type, vals,
+ struct_expr.union_index,
struct_expr.get_locus ());
}