aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/analysis
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2020-11-15 22:18:49 +0800
committerSimplyTheOther <simplytheother@gmail.com>2020-12-08 21:10:31 +0800
commit4ec3b8d62b1b6ae79d55b71b423dcb04129884c6 (patch)
treee3b1d7ff3ac504d718c66af7b881d6757c9f8314 /gcc/rust/analysis
parent25de39b1f0e307b0ff6de485d9ac5648e9295f3d (diff)
downloadgcc-4ec3b8d62b1b6ae79d55b71b423dcb04129884c6.zip
gcc-4ec3b8d62b1b6ae79d55b71b423dcb04129884c6.tar.gz
gcc-4ec3b8d62b1b6ae79d55b71b423dcb04129884c6.tar.bz2
Added more expr cfg stripping
Fixed compile errors Fixed compile errors relating to block expr visibility changes
Diffstat (limited to 'gcc/rust/analysis')
-rw-r--r--gcc/rust/analysis/rust-type-resolution.cc4
1 files changed, 2 insertions, 2 deletions
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);
}