Skip to content

Commit 5d813f3

Browse files
committed
Revert "[SIL] Add flag to SILFunctionType::Profile for async."
This reverts commit b8976a3.
1 parent 94b5f76 commit 5d813f3

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

include/swift/AST/Types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4575,14 +4575,14 @@ class SILFunctionType final
45754575

45764576
void Profile(llvm::FoldingSetNodeID &ID) {
45774577
Profile(ID, getInvocationGenericSignature(),
4578-
getExtInfo(), isAsync(), getCoroutineKind(), getCalleeConvention(),
4578+
getExtInfo(), getCoroutineKind(), getCalleeConvention(),
45794579
getParameters(), getYields(), getResults(),
45804580
getOptionalErrorResult(), getWitnessMethodConformanceOrInvalid(),
45814581
getPatternSubstitutions(), getInvocationSubstitutions());
45824582
}
45834583
static void
45844584
Profile(llvm::FoldingSetNodeID &ID, GenericSignature genericSig, ExtInfo info,
4585-
bool isAsync, SILCoroutineKind coroutineKind, ParameterConvention calleeConvention,
4585+
SILCoroutineKind coroutineKind, ParameterConvention calleeConvention,
45864586
ArrayRef<SILParameterInfo> params, ArrayRef<SILYieldInfo> yields,
45874587
ArrayRef<SILResultInfo> results, Optional<SILResultInfo> errorResult,
45884588
ProtocolConformanceRef conformance,

lib/AST/ASTContext.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3260,7 +3260,6 @@ void SILFunctionType::Profile(
32603260
llvm::FoldingSetNodeID &id,
32613261
GenericSignature genericParams,
32623262
ExtInfo info,
3263-
bool isAsync,
32643263
SILCoroutineKind coroutineKind,
32653264
ParameterConvention calleeConvention,
32663265
ArrayRef<SILParameterInfo> params,
@@ -3274,7 +3273,6 @@ void SILFunctionType::Profile(
32743273
auto infoKey = info.getFuncAttrKey();
32753274
id.AddInteger(infoKey.first);
32763275
id.AddPointer(infoKey.second);
3277-
id.AddBoolean(isAsync);
32783276
id.AddInteger(unsigned(coroutineKind));
32793277
id.AddInteger(unsigned(calleeConvention));
32803278
id.AddInteger(params.size());
@@ -3486,8 +3484,8 @@ CanSILFunctionType SILFunctionType::get(
34863484
invocationSubs = invocationSubs.getCanonical();
34873485

34883486
llvm::FoldingSetNodeID id;
3489-
SILFunctionType::Profile(id, genericSig, ext, isAsync, coroutineKind, callee,
3490-
params, yields, normalResults, errorResult,
3487+
SILFunctionType::Profile(id, genericSig, ext, coroutineKind, callee, params,
3488+
yields, normalResults, errorResult,
34913489
witnessMethodConformance,
34923490
patternSubs, invocationSubs);
34933491

0 commit comments

Comments
 (0)