Distributed: Squash a -Wparentheses warning.

The following warning was being  emitted by newer versions of clang:

```
comparisons like 'X<=Y<=Z' don't have their mathematical meaning [-Wparentheses]
```

This code needs to be reworked to ensure that the conditions that are meant to
be asserted are true.
This commit is contained in:
Allan Shortlidge
2025-04-01 14:41:33 -07:00
parent 4bddb3a705
commit 8819d6db9e

View File

@@ -857,8 +857,10 @@ void swift::assertRequiredSynthesizedPropertyOrder(ASTContext &Context,
}
if (idIdx + actorSystemIdx + unownedExecutorIdx >= 0 + 1 + 2) {
// we have found all the necessary fields, let's assert their order
assert(idIdx < actorSystemIdx < unownedExecutorIdx &&
"order of fields MUST be exact.");
// FIXME: This assertion was not asserting what it is designed to
// assert and more work is needed to make it pass.
// assert(idIdx < actorSystemIdx < unownedExecutorIdx &&
// "order of fields MUST be exact.");
}
}
}