We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9e71d6 commit 8aca536Copy full SHA for 8aca536
include/swift/AST/Types.h
@@ -3583,13 +3583,13 @@ class AnyFunctionType : public TypeBase {
3583
Bits.AnyFunctionType.NumParams = NumParams;
3584
assert(Bits.AnyFunctionType.NumParams == NumParams && "Params dropped!");
3585
3586
- if (Info) {
+ if (Info && CONDITIONAL_ASSERT_enabled()) {
3587
unsigned maxLifetimeTarget = NumParams + 1;
3588
if (auto outputFn = Output->getAs<AnyFunctionType>()) {
3589
maxLifetimeTarget += outputFn->getNumParams();
3590
}
3591
for (auto &dep : Info->getLifetimeDependencies()) {
3592
- assert(dep.getTargetIndex() < maxLifetimeTarget);
+ ASSERT(dep.getTargetIndex() < maxLifetimeTarget);
3593
3594
3595
0 commit comments