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.
This commit is contained in:
Richard Biener 2022-11-29 08:43:55 +01:00
parent e161040732
commit 5894a81796

View File

@ -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