diff options
author | Richard Biener <rguenther@suse.de> | 2022-11-29 08:43:55 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-11-29 10:25:39 +0100 |
commit | 5894a8179687b7028d093584102d204af422cfd3 (patch) | |
tree | 55505955503f5fbe18b9ed2a6c16b3a5652916e3 /gcc/multiple_target.cc | |
parent | e16104073281dd1da10a858e4c214b6c5c2d7598 (diff) | |
download | gcc-5894a8179687b7028d093584102d204af422cfd3.zip gcc-5894a8179687b7028d093584102d204af422cfd3.tar.gz gcc-5894a8179687b7028d093584102d204af422cfd3.tar.bz2 |
ipa/107897 - avoid property verification ICE after error
The target clone pass is the only small IPA pass that doesn't disable
itself after errors but has properties whose verification can fail
because we cut off build SSA passes after errors.
PR ipa/107897
* multiple_target.cc (pass_target_clone::gate): Disable
after errors.
Diffstat (limited to 'gcc/multiple_target.cc')
-rw-r--r-- | gcc/multiple_target.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/multiple_target.cc b/gcc/multiple_target.cc index 77e0f21..fd88c22 100644 --- a/gcc/multiple_target.cc +++ b/gcc/multiple_target.cc @@ -539,7 +539,8 @@ public: bool pass_target_clone::gate (function *) { - return true; + /* If there were any errors avoid pass property verification errors. */ + return !seen_error (); } } // anon namespace |