Skip to content

Commit 7094873

Browse files
committed
ClangImporter: Adjust call to refactored clangSema.FindAllocationFunctions
See llvm/llvm-project#113510
1 parent 01296fa commit 7094873

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ClangImporter/SwiftDeclSynthesizer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2560,13 +2560,13 @@ SwiftDeclSynthesizer::synthesizeStaticFactoryForCXXForeignRef(
25602560

25612561
clang::FunctionDecl *operatorNew = nullptr;
25622562
clang::FunctionDecl *operatorDelete = nullptr;
2563-
bool passAlignment = false;
2563+
clang::ImplicitAllocationParameters IAP(clang::AlignedAllocationMode::No);
25642564
clang::Sema::SFINAETrap trap(clangSema);
25652565
bool findingAllocFuncFailed = clangSema.FindAllocationFunctions(
25662566
cxxRecordDeclLoc, clang::SourceRange(),
25672567
clang::AllocationFunctionScope::Both,
2568-
clang::AllocationFunctionScope::Both, cxxRecordTy, /*IsArray=*/false,
2569-
passAlignment, clang::MultiExprArg(), operatorNew, operatorDelete,
2568+
clang::AllocationFunctionScope::Both, cxxRecordTy, /*IsArray=*/false, IAP,
2569+
clang::MultiExprArg(), operatorNew, operatorDelete,
25702570
/*Diagnose=*/false);
25712571
if (trap.hasErrorOccurred() || findingAllocFuncFailed || !operatorNew ||
25722572
operatorNew->isDeleted() ||

0 commit comments

Comments
 (0)