[SILOpt] Removed unreachable bailouts.

Now that supportsMoveOnlyTypes is always true, these bailouts can't be
reached.  Delete the bailouts and the predicate.
This commit is contained in:
Nate Chandler
2024-02-05 17:40:17 -08:00
parent af1da401d9
commit 336afca477
9 changed files with 0 additions and 36 deletions

View File

@@ -553,10 +553,6 @@ class ConsumeOperatorCopyableValuesCheckerPass : public SILFunctionTransform {
void run() override {
auto *fn = getFunction();
// Only run this pass if the move only language feature is enabled.
if (!fn->getASTContext().supportsMoveOnlyTypes())
return;
// Don't rerun diagnostics on deserialized functions.
if (fn->wasDeserializedCanonical())
return;