We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3c687d commit bd1b6d1Copy full SHA for bd1b6d1
lib/SILGen/SILGenDestructor.cpp
@@ -373,8 +373,11 @@ void SILGenFunction::emitIsolatingDestructor(DestructorDecl *dd) {
373
374
// Get deinitOnExecutor
375
FuncDecl *swiftDeinitOnExecutorDecl = SGM.getDeinitOnExecutor();
376
- assert(swiftDeinitOnExecutorDecl &&
377
- "Failed to find swift_task_deinitOnExecutor function decl");
+ if (!swiftDeinitOnExecutorDecl) {
+ llvm::report_fatal_error(
378
+ "Failed to find swift_task_deinitOnExecutor function decl! "
379
+ "This is likely due to an outdated/incompatible SDK.");
380
+ }
381
SILFunction *swiftDeinitOnExecutorSILFunc = SGM.getFunction(
382
SILDeclRef(swiftDeinitOnExecutorDecl, SILDeclRef::Kind::Func),
383
NotForDefinition);
0 commit comments