mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
ClangImporter: Adjust call to refactored clangSema.FindAllocationFunctions
See https://github.com/llvm/llvm-project/pull/113510
This commit is contained in:
@@ -2560,13 +2560,13 @@ SwiftDeclSynthesizer::synthesizeStaticFactoryForCXXForeignRef(
|
||||
|
||||
clang::FunctionDecl *operatorNew = nullptr;
|
||||
clang::FunctionDecl *operatorDelete = nullptr;
|
||||
bool passAlignment = false;
|
||||
clang::ImplicitAllocationParameters IAP(clang::AlignedAllocationMode::No);
|
||||
clang::Sema::SFINAETrap trap(clangSema);
|
||||
bool findingAllocFuncFailed = clangSema.FindAllocationFunctions(
|
||||
cxxRecordDeclLoc, clang::SourceRange(),
|
||||
clang::AllocationFunctionScope::Both,
|
||||
clang::AllocationFunctionScope::Both, cxxRecordTy, /*IsArray=*/false,
|
||||
passAlignment, clang::MultiExprArg(), operatorNew, operatorDelete,
|
||||
clang::AllocationFunctionScope::Both, cxxRecordTy, /*IsArray=*/false, IAP,
|
||||
clang::MultiExprArg(), operatorNew, operatorDelete,
|
||||
/*Diagnose=*/false);
|
||||
if (trap.hasErrorOccurred() || findingAllocFuncFailed || !operatorNew ||
|
||||
operatorNew->isDeleted() ||
|
||||
|
||||
Reference in New Issue
Block a user