From 4a5ccf04a735c5e2d497fb2d74f3a2e33dac2f0e Mon Sep 17 00:00:00 2001 From: Konrad 'ktoso' Malawski Date: Tue, 8 Jul 2025 10:03:41 +0900 Subject: [PATCH] [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. --- lib/SILGen/SILGenConcurrency.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SILGen/SILGenConcurrency.cpp b/lib/SILGen/SILGenConcurrency.cpp index 9e70e95e5dc7a..cb896c63ffe22 100644 --- a/lib/SILGen/SILGenConcurrency.cpp +++ b/lib/SILGen/SILGenConcurrency.cpp @@ -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) {