[Concurrency] Use ASSERT for to also assert in release builds

Small cleanup from code review; we'd crash either way after this line,
so might be better to always ASSERT more nicely.
This commit is contained in:
Konrad 'ktoso' Malawski
2025-07-08 10:03:41 +09:00
parent 71f1be9a4c
commit 1d04e11349

View File

@@ -75,7 +75,7 @@ setExpectedExecutorForParameterIsolation(SILGenFunction &SGF,
// argument.
if (actorIsolation.getKind() == ActorIsolation::CallerIsolationInheriting) {
auto *isolatedArg = SGF.F.maybeGetIsolatedArgument();
assert(isolatedArg &&
ASSERT(isolatedArg &&
"Caller Isolation Inheriting without isolated parameter");
ManagedValue isolatedMV;
if (isolatedArg->getOwnershipKind() == OwnershipKind::Guaranteed) {