mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user