From 4ec3b8d62b1b6ae79d55b71b423dcb04129884c6 Mon Sep 17 00:00:00 2001 From: SimplyTheOther Date: Sun, 15 Nov 2020 22:18:49 +0800 Subject: Added more expr cfg stripping Fixed compile errors Fixed compile errors relating to block expr visibility changes --- gcc/rust/analysis/rust-type-resolution.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/rust/analysis') diff --git a/gcc/rust/analysis/rust-type-resolution.cc b/gcc/rust/analysis/rust-type-resolution.cc index c3a5587..5aa2905 100644 --- a/gcc/rust/analysis/rust-type-resolution.cc +++ b/gcc/rust/analysis/rust-type-resolution.cc @@ -615,7 +615,7 @@ void TypeResolution::visit (AST::BlockExpr &expr) { scope.Push (); - for (auto &stmt : expr.statements) + for (auto &stmt : expr.get_statements ()) { stmt->accept_vis (*this); } @@ -792,7 +792,7 @@ TypeResolution::visit (AST::Function &function) } // walk the expression body - for (auto &stmt : function.get_definition ()->statements) + for (auto &stmt : function.get_definition ()->get_statements ()) { stmt->accept_vis (*this); } -- cgit v1.1