Skip to content

Commit 552dcf1

Browse files
committed
[Concurrency] adjust how we fail creating an IsIsolatingCurrentContextDecision
1 parent 22b20e7 commit 552dcf1

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

include/swift/ABI/Executor.h

+3-7
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@
1717
#ifndef SWIFT_ABI_EXECUTOR_H
1818
#define SWIFT_ABI_EXECUTOR_H
1919

20-
#include "../../../stdlib/public/Concurrency/Error.h"
21-
20+
#include <inttypes.h>
2221
#include "swift/ABI/Actor.h"
2322
#include "swift/ABI/HeapObject.h"
2423
#include "swift/Runtime/Casting.h"
25-
#include <inttypes.h>
2624

2725
namespace swift {
2826
class AsyncContext;
@@ -434,8 +432,7 @@ getIsIsolatingCurrentContextDecisionFromInt(int8_t value) {
434432
case 0: return IsIsolatingCurrentContextDecision::NotIsolated;
435433
case 1: return IsIsolatingCurrentContextDecision::Isolated;
436434
default:
437-
swift_Concurrency_fatalError(0, "Unexpected IsIsolatingCurrentContextDecision value");
438-
return IsIsolatingCurrentContextDecision::Unknown; // silence warning about missing return
435+
fatalError(0, "Unexpected IsIsolatingCurrentContextDecision value");
439436
}
440437
}
441438

@@ -445,8 +442,7 @@ inline StringRef getIsIsolatingCurrentContextDecisionNameStr(IsIsolatingCurrentC
445442
case IsIsolatingCurrentContextDecision::NotIsolated: return "NotIsolated";
446443
case IsIsolatingCurrentContextDecision::Isolated: return "Isolated";
447444
}
448-
swift_Concurrency_fatalError(0, "Unexpected IsIsolatingCurrentContextDecision value");
449-
return "<Unexpected Value>"; // silence warning about missing return
445+
fatalError(0, "Unexpected IsIsolatingCurrentContextDecision value");
450446
}
451447

452448
}

0 commit comments

Comments
 (0)