mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #74619 from swiftlang/egorzhdan/std-function-inout
[cxx-interop] Instantiate the `std::function` constructor with a const pointer argument
This commit is contained in:
@@ -1059,7 +1059,7 @@ void swift::conformToCxxFunctionIfNeeded(
|
||||
|
||||
auto funcPointerType = clangCtx.getPointerType(clangCtx.getFunctionType(
|
||||
operatorCallDecl->getReturnType(), operatorCallParamTypes,
|
||||
clang::FunctionProtoType::ExtProtoInfo()));
|
||||
clang::FunctionProtoType::ExtProtoInfo())).withConst();
|
||||
|
||||
// Create a fake variable with a function type that matches the type of
|
||||
// `operator()`.
|
||||
|
||||
Reference in New Issue
Block a user