diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2020-12-07 19:51:24 +0800 |
---|---|---|
committer | SimplyTheOther <simplytheother@gmail.com> | 2020-12-08 21:10:36 +0800 |
commit | c7080f178a637cad04e196a404d5d44bb33189af (patch) | |
tree | a023eeee3f2c3ab85190e4967cfe0599b466843e /gcc/rust/analysis | |
parent | db39766514144dbbad34d9db3977c3a72d1216c3 (diff) | |
download | gcc-c7080f178a637cad04e196a404d5d44bb33189af.zip gcc-c7080f178a637cad04e196a404d5d44bb33189af.tar.gz gcc-c7080f178a637cad04e196a404d5d44bb33189af.tar.bz2 |
Added more cfg stripping code
Diffstat (limited to 'gcc/rust/analysis')
-rw-r--r-- | gcc/rust/analysis/rust-type-resolution.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/analysis/rust-type-resolution.cc b/gcc/rust/analysis/rust-type-resolution.cc index 439543e..2c720c6 100644 --- a/gcc/rust/analysis/rust-type-resolution.cc +++ b/gcc/rust/analysis/rust-type-resolution.cc @@ -1038,7 +1038,7 @@ TypeResolution::visit (AST::LetStmt &stmt) if (stmt.has_type () && stmt.has_init_expr ()) { - if (!typesAreCompatible (stmt.type.get (), inferedType, + if (!typesAreCompatible (stmt.get_type ().get (), inferedType, stmt.get_init_expr ()->get_locus_slow ())) { return; |