aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2020-12-09 16:01:35 +0800
committerSimplyTheOther <simplytheother@gmail.com>2020-12-09 16:01:35 +0800
commitb343d117f5cf7976d3c4c93d9595e2471d780acd (patch)
treebb0e8927da5eff47275bf5ec25331e8d950ff009
parent41c14b45ac604ebd69a6715445cdb10fc5c5ec07 (diff)
downloadgcc-b343d117f5cf7976d3c4c93d9595e2471d780acd.zip
gcc-b343d117f5cf7976d3c4c93d9595e2471d780acd.tar.gz
gcc-b343d117f5cf7976d3c4c93d9595e2471d780acd.tar.bz2
Fixed rust-compile.cc compile error
-rw-r--r--gcc/rust/backend/rust-compile.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/backend/rust-compile.cc b/gcc/rust/backend/rust-compile.cc
index dd28759..300240f 100644
--- a/gcc/rust/backend/rust-compile.cc
+++ b/gcc/rust/backend/rust-compile.cc
@@ -550,7 +550,7 @@ Compilation::visit (AST::ArrayExpr &expr)
translatedType = nullptr;
auto before = arrayConsStack.size ();
- expr.get_internal_elements ()->accept_vis (*this);
+ expr.get_array_elems ()->accept_vis (*this);
if (arrayConsStack.size () <= before)
{
rust_error_at (expr.get_locus_slow (),
@@ -1465,7 +1465,7 @@ Compilation::visit (AST::ArrayType &type)
{
Btype *elementType;
translatedType = nullptr;
- type.get_element_type ()->accept_vis (*this);
+ type.get_elem_type ()->accept_vis (*this);
if (translatedType == nullptr)
{
rust_error_at (type.get_locus (),