aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-06-30 14:06:58 +0000
committerGitHub <noreply@github.com>2021-06-30 14:06:58 +0000
commit0163ca4b6f2248103d416405b6758f7abb5e18ab (patch)
tree1063cebf7afb7c4331a577aec6124c902d4e9bbd /gcc
parentbb95f8f5ca0fed11f2c7a9b539a3c120ce054d8e (diff)
parent5aa2188c89f0423d35aa449d5835f589eaf5c10d (diff)
downloadgcc-0163ca4b6f2248103d416405b6758f7abb5e18ab.zip
gcc-0163ca4b6f2248103d416405b6758f7abb5e18ab.tar.gz
gcc-0163ca4b6f2248103d416405b6758f7abb5e18ab.tar.bz2
Merge #538
538: exit immediately when the type checker find an error r=philberty a=thomasyonug exit immediately when the type checker find an error Co-authored-by: Thomas Young <wenzhang5800@gmail.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/rust-session-manager.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rust/rust-session-manager.cc b/gcc/rust/rust-session-manager.cc
index c0d863b..eb77c07 100644
--- a/gcc/rust/rust-session-manager.cc
+++ b/gcc/rust/rust-session-manager.cc
@@ -572,6 +572,9 @@ Session::parse_file (const char *filename)
dump_type_resolution (hir);
}
+ if (saw_errors ())
+ return;
+
// liveness analysis
std::set<HirId> live_symbols = Analysis::MarkLive::Analysis (hir);