aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2020-12-21 15:52:23 +0000
committerPhilip Herron <herron.philip@googlemail.com>2020-12-23 14:47:34 +0000
commitd1afbb7ead51347a84da62a6be9f98b0742538de (patch)
tree220f0a8396e7018041622da455562362a23041e6 /gcc/rust/resolve
parentf701ad5352c7bc8dad53a1ee7f666c8365b35307 (diff)
downloadgcc-d1afbb7ead51347a84da62a6be9f98b0742538de.zip
gcc-d1afbb7ead51347a84da62a6be9f98b0742538de.tar.gz
gcc-d1afbb7ead51347a84da62a6be9f98b0742538de.tar.bz2
Implement compilation of ArrayElemsCopied to GIMPLE
let mut array = [123; 5]
Diffstat (limited to 'gcc/rust/resolve')
-rw-r--r--gcc/rust/resolve/rust-ast-resolve-expr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/resolve/rust-ast-resolve-expr.h b/gcc/rust/resolve/rust-ast-resolve-expr.h
index 54d33a8..d86866c 100644
--- a/gcc/rust/resolve/rust-ast-resolve-expr.h
+++ b/gcc/rust/resolve/rust-ast-resolve-expr.h
@@ -150,8 +150,8 @@ public:
void visit (AST::ArrayElemsCopied &elems)
{
- // TODO
- gcc_unreachable ();
+ ResolveExpr::go (elems.get_num_copies ().get (), elems.get_node_id ());
+ ResolveExpr::go (elems.get_elem_to_copy ().get (), elems.get_node_id ());
}
private: