mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user