Skip to content

Commit aee1151

Browse files
[NFC] Remove unused parameter to ASTContext::getClangFunctionType.
1 parent c3c032b commit aee1151

File tree

4 files changed

+1
-8
lines changed

4 files changed

+1
-8
lines changed

include/swift/AST/ASTContext.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -590,13 +590,9 @@ class ASTContext final {
590590
///
591591
/// \param params The function parameters.
592592
/// \param resultTy The Swift result type.
593-
/// \param incompleteExtInfo Used to convey escaping and throwing
594-
/// information, in case it is needed.
595593
/// \param trueRep The actual calling convention, which must be C-compatible.
596-
/// The calling convention in \p incompleteExtInfo is ignored.
597594
const clang::Type *
598595
getClangFunctionType(ArrayRef<AnyFunctionType::Param> params, Type resultTy,
599-
const FunctionType::ExtInfo incompleteExtInfo,
600596
FunctionTypeRepresentation trueRep);
601597

602598
/// Get the Swift declaration that a Clang declaration was exported from,

lib/AST/ASTContext.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4446,7 +4446,6 @@ Type ASTContext::getBridgedToObjC(const DeclContext *dc, Type type,
44464446
const clang::Type *
44474447
ASTContext::getClangFunctionType(ArrayRef<AnyFunctionType::Param> params,
44484448
Type resultTy,
4449-
FunctionType::ExtInfo incompleteExtInfo,
44504449
FunctionTypeRepresentation trueRep) {
44514450
auto &impl = getImpl();
44524451
if (!impl.Converter) {

lib/AST/ASTDemangler.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,6 @@ Type ASTBuilder::createFunctionType(
407407
const clang::Type *clangFunctionType = nullptr;
408408
if (representation == FunctionTypeRepresentation::CFunctionPointer)
409409
clangFunctionType = Ctx.getClangFunctionType(funcParams, output,
410-
incompleteExtInfo,
411410
representation);
412411

413412
auto einfo = incompleteExtInfo.withRepresentation(representation)

lib/Sema/TypeCheckType.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2680,8 +2680,7 @@ Type TypeResolver::resolveASTFunctionType(
26802680
if (representation == AnyFunctionType::Representation::CFunctionPointer
26812681
&& !clangFnType)
26822682
clangFnType = Context.getClangFunctionType(
2683-
params, outputTy, incompleteExtInfo,
2684-
AnyFunctionType::Representation::CFunctionPointer);
2683+
params, outputTy, AnyFunctionType::Representation::CFunctionPointer);
26852684

26862685
auto extInfo = incompleteExtInfo.withRepresentation(representation)
26872686
.withAsync(repr->async())

0 commit comments

Comments
 (0)