@@ -919,7 +919,6 @@ static bool parseDeclSILOptional(bool *isTransparent,
919919 bool *isWeakImported,
920920 AvailabilityContext *availability,
921921 bool *isWithoutActuallyEscapingThunk,
922- bool *isAsync,
923922 SmallVectorImpl<std::string> *Semantics,
924923 SmallVectorImpl<ParsedSpecAttr> *SpecAttrs,
925924 ValueDecl **ClangDecl,
@@ -958,8 +957,6 @@ static bool parseDeclSILOptional(bool *isTransparent,
958957 else if (isWithoutActuallyEscapingThunk
959958 && SP.P .Tok .getText () == " without_actually_escaping" )
960959 *isWithoutActuallyEscapingThunk = true ;
961- else if (isAsync && SP.P .Tok .getText () == " async" )
962- *isAsync = true ;
963960 else if (specialPurpose && SP.P .Tok .getText () == " global_init" )
964961 *specialPurpose = SILFunction::Purpose::GlobalInit;
965962 else if (specialPurpose && SP.P .Tok .getText () == " lazy_getter" )
@@ -5682,7 +5679,6 @@ bool SILParserState::parseDeclSIL(Parser &P) {
56825679 bool isWeakImported = false ;
56835680 AvailabilityContext availability = AvailabilityContext::alwaysAvailable ();
56845681 bool isWithoutActuallyEscapingThunk = false ;
5685- bool isAsync = false ;
56865682 Inline_t inlineStrategy = InlineDefault;
56875683 OptimizationMode optimizationMode = OptimizationMode::NotSet;
56885684 SmallVector<std::string, 1 > Semantics;
@@ -5697,8 +5693,8 @@ bool SILParserState::parseDeclSIL(Parser &P) {
56975693 &isThunk, &isDynamic, &isExactSelfClass, &DynamicallyReplacedFunction,
56985694 &objCReplacementFor, &specialPurpose, &inlineStrategy,
56995695 &optimizationMode, nullptr , &isWeakImported, &availability,
5700- &isWithoutActuallyEscapingThunk, &isAsync, & Semantics, &SpecAttrs ,
5701- &ClangDecl, &MRK, FunctionState, M) ||
5696+ &isWithoutActuallyEscapingThunk, &Semantics,
5697+ &SpecAttrs, & ClangDecl, &MRK, FunctionState, M) ||
57025698 P.parseToken (tok::at_sign, diag::expected_sil_function_name) ||
57035699 P.parseIdentifier (FnName, FnNameLoc, diag::expected_sil_function_name) ||
57045700 P.parseToken (tok::colon, diag::expected_sil_type))
@@ -5736,7 +5732,6 @@ bool SILParserState::parseDeclSIL(Parser &P) {
57365732 FunctionState.F ->setAvailabilityForLinkage (availability);
57375733 FunctionState.F ->setWithoutActuallyEscapingThunk (
57385734 isWithoutActuallyEscapingThunk);
5739- FunctionState.F ->setAsync (isAsync);
57405735 FunctionState.F ->setInlineStrategy (inlineStrategy);
57415736 FunctionState.F ->setOptimizationMode (optimizationMode);
57425737 FunctionState.F ->setEffectsKind (MRK);
@@ -5922,9 +5917,10 @@ bool SILParserState::parseSILGlobal(Parser &P) {
59225917 SILParser State (P);
59235918 if (parseSILLinkage (GlobalLinkage, P) ||
59245919 parseDeclSILOptional (nullptr , &isSerialized, nullptr , nullptr , nullptr ,
5925- nullptr , nullptr , nullptr , nullptr , nullptr , nullptr ,
5926- nullptr , &isLet, nullptr , nullptr , nullptr , nullptr ,
5927- nullptr , nullptr , nullptr , nullptr , State, M) ||
5920+ nullptr , nullptr , nullptr , nullptr , nullptr ,
5921+ nullptr , nullptr ,
5922+ &isLet, nullptr , nullptr , nullptr , nullptr , nullptr ,
5923+ nullptr , nullptr , State, M) ||
59285924 P.parseToken (tok::at_sign, diag::expected_sil_value_name) ||
59295925 P.parseIdentifier (GlobalName, NameLoc, diag::expected_sil_value_name) ||
59305926 P.parseToken (tok::colon, diag::expected_sil_type))
@@ -5973,7 +5969,7 @@ bool SILParserState::parseSILProperty(Parser &P) {
59735969 if (parseDeclSILOptional (nullptr , &Serialized, nullptr , nullptr , nullptr ,
59745970 nullptr , nullptr , nullptr , nullptr , nullptr , nullptr ,
59755971 nullptr , nullptr , nullptr , nullptr , nullptr , nullptr ,
5976- nullptr , nullptr , nullptr , nullptr , SP, M))
5972+ nullptr , nullptr , nullptr , SP, M))
59775973 return true ;
59785974
59795975 ValueDecl *VD;
@@ -6043,7 +6039,8 @@ bool SILParserState::parseSILVTable(Parser &P) {
60436039 if (parseDeclSILOptional (nullptr , &Serialized, nullptr , nullptr , nullptr ,
60446040 nullptr , nullptr , nullptr , nullptr , nullptr , nullptr ,
60456041 nullptr , nullptr , nullptr , nullptr , nullptr , nullptr ,
6046- nullptr , nullptr , nullptr , nullptr , VTableState, M))
6042+ nullptr , nullptr , nullptr ,
6043+ VTableState, M))
60476044 return true ;
60486045
60496046 // Parse the class name.
@@ -6579,7 +6576,8 @@ bool SILParserState::parseSILWitnessTable(Parser &P) {
65796576 if (parseDeclSILOptional (nullptr , &isSerialized, nullptr , nullptr , nullptr ,
65806577 nullptr , nullptr , nullptr , nullptr , nullptr , nullptr ,
65816578 nullptr , nullptr , nullptr , nullptr , nullptr , nullptr ,
6582- nullptr , nullptr , nullptr , nullptr , WitnessState, M))
6579+ nullptr , nullptr , nullptr ,
6580+ WitnessState, M))
65836581 return true ;
65846582
65856583 Scope S (&P, ScopeKind::TopLevel);
0 commit comments