Skip to content

Commit 4a5ccf0

Browse files
committed
[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.
1 parent f7ccb52 commit 4a5ccf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILGen/SILGenConcurrency.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ setExpectedExecutorForParameterIsolation(SILGenFunction &SGF,
7575
// argument.
7676
if (actorIsolation.getKind() == ActorIsolation::CallerIsolationInheriting) {
7777
auto *isolatedArg = SGF.F.maybeGetIsolatedArgument();
78-
assert(isolatedArg &&
78+
ASSERT(isolatedArg &&
7979
"Caller Isolation Inheriting without isolated parameter");
8080
ManagedValue isolatedMV;
8181
if (isolatedArg->getOwnershipKind() == OwnershipKind::Guaranteed) {

0 commit comments

Comments
 (0)