Skip to content

Commit 1a0e390

Browse files
committed
ClangImporter: Adjust references to cases of moved enum clang::Sema::AllocationFunctionScope
See llvm/llvm-project@461255e
1 parent 0a72c39 commit 1a0e390

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/ClangImporter/SwiftDeclSynthesizer.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2563,9 +2563,10 @@ SwiftDeclSynthesizer::synthesizeStaticFactoryForCXXForeignRef(
25632563
bool passAlignment = false;
25642564
clang::Sema::SFINAETrap trap(clangSema);
25652565
bool findingAllocFuncFailed = clangSema.FindAllocationFunctions(
2566-
cxxRecordDeclLoc, clang::SourceRange(), clang::Sema::AFS_Both,
2567-
clang::Sema::AFS_Both, cxxRecordTy, /*IsArray=*/false, passAlignment,
2568-
clang::MultiExprArg(), operatorNew, operatorDelete,
2566+
cxxRecordDeclLoc, clang::SourceRange(),
2567+
clang::AllocationFunctionScope::Both,
2568+
clang::AllocationFunctionScope::Both, cxxRecordTy, /*IsArray=*/false,
2569+
passAlignment, clang::MultiExprArg(), operatorNew, operatorDelete,
25692570
/*Diagnose=*/false);
25702571
if (trap.hasErrorOccurred() || findingAllocFuncFailed || !operatorNew ||
25712572
operatorNew->isDeleted() ||

0 commit comments

Comments
 (0)