File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -236,12 +236,12 @@ class LifetimeDependenceInfo {
236
236
paramIndicesLength = inheritLifetimeParamIndices->getCapacity ();
237
237
}
238
238
if (scopeLifetimeParamIndices) {
239
- assert (paramIndicesLength == 0 ||
239
+ ASSERT (paramIndicesLength == 0 ||
240
240
paramIndicesLength == scopeLifetimeParamIndices->getCapacity ());
241
241
paramIndicesLength = scopeLifetimeParamIndices->getCapacity ();
242
242
}
243
243
if (addressableParamIndices) {
244
- assert (paramIndicesLength == 0 ||
244
+ ASSERT (paramIndicesLength == 0 ||
245
245
paramIndicesLength == addressableParamIndices->getCapacity ());
246
246
paramIndicesLength = addressableParamIndices->getCapacity ();
247
247
}
Original file line number Diff line number Diff line change @@ -3583,13 +3583,13 @@ class AnyFunctionType : public TypeBase {
3583
3583
Bits.AnyFunctionType .NumParams = NumParams;
3584
3584
assert (Bits.AnyFunctionType .NumParams == NumParams && " Params dropped!" );
3585
3585
3586
- if (Info) {
3586
+ if (Info && CONDITIONAL_ASSERT_enabled () ) {
3587
3587
unsigned maxLifetimeTarget = NumParams + 1 ;
3588
3588
if (auto outputFn = Output->getAs <AnyFunctionType>()) {
3589
3589
maxLifetimeTarget += outputFn->getNumParams ();
3590
3590
}
3591
3591
for (auto &dep : Info->getLifetimeDependencies ()) {
3592
- assert (dep.getTargetIndex () < maxLifetimeTarget);
3592
+ ASSERT (dep.getTargetIndex () < maxLifetimeTarget);
3593
3593
}
3594
3594
}
3595
3595
}
You can’t perform that action at this time.
0 commit comments