@@ -2410,6 +2410,14 @@ static ValueDecl *getTaskLocalValuePop(ASTContext &ctx, Identifier id) {
24102410 return getBuiltinFunction (ctx, id, _thin, _parameters (), _void);
24112411}
24122412
2413+ static ValueDecl *getTaskCancellationShieldPush (ASTContext &ctx, Identifier id) {
2414+ return getBuiltinFunction (ctx, id, _thin, _parameters (), _void);
2415+ }
2416+
2417+ static ValueDecl *getTaskCancellationShieldPop (ASTContext &ctx, Identifier id) {
2418+ return getBuiltinFunction (ctx, id, _thin, _parameters (), _void);
2419+ }
2420+
24132421// / An array of the overloaded builtin kinds.
24142422static const OverloadedBuiltinKind OverloadedBuiltinKinds[] = {
24152423 OverloadedBuiltinKind::None,
@@ -3516,6 +3524,12 @@ ValueDecl *swift::getBuiltinValueDecl(ASTContext &Context, Identifier Id) {
35163524
35173525 case BuiltinValueKind::TaskLocalValuePop:
35183526 return getTaskLocalValuePop (Context, Id);
3527+
3528+ case BuiltinValueKind::TaskCancellationShieldPush:
3529+ return getTaskCancellationShieldPush (Context, Id);
3530+
3531+ case BuiltinValueKind::TaskCancellationShieldPop:
3532+ return getTaskCancellationShieldPop (Context, Id);
35193533 }
35203534
35213535 llvm_unreachable (" bad builtin value!" );
0 commit comments