mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fixing build break due to MemberExpr new -> create changes.
Hash c32ef4bc0b17f79d96b672143d5e5fba9e39ea8d (llvm monorepo) changed the
allocation interface from new to create.
(cherry picked from commit 0e4add8510)
This commit is contained in:
@@ -1140,15 +1140,15 @@ makeBitFieldAccessors(ClangImporter::Implementation &Impl,
|
|||||||
recordType,
|
recordType,
|
||||||
clang::VK_RValue,
|
clang::VK_RValue,
|
||||||
clang::SourceLocation());
|
clang::SourceLocation());
|
||||||
auto cGetterExpr = new (Ctx) clang::MemberExpr(cGetterSelfExpr,
|
auto cGetterExpr = clang::MemberExpr::CreateImplicit(Ctx,
|
||||||
|
cGetterSelfExpr,
|
||||||
/*isarrow=*/ false,
|
/*isarrow=*/ false,
|
||||||
clang::SourceLocation(),
|
|
||||||
fieldDecl,
|
fieldDecl,
|
||||||
fieldNameInfo,
|
|
||||||
fieldType,
|
fieldType,
|
||||||
clang::VK_RValue,
|
clang::VK_RValue,
|
||||||
clang::OK_BitField);
|
clang::OK_BitField);
|
||||||
|
|
||||||
|
|
||||||
auto cGetterBody = clang::ReturnStmt::Create(Ctx, clang::SourceLocation(),
|
auto cGetterBody = clang::ReturnStmt::Create(Ctx, clang::SourceLocation(),
|
||||||
cGetterExpr,
|
cGetterExpr,
|
||||||
nullptr);
|
nullptr);
|
||||||
@@ -1185,11 +1185,10 @@ makeBitFieldAccessors(ClangImporter::Implementation &Impl,
|
|||||||
clang::VK_RValue,
|
clang::VK_RValue,
|
||||||
clang::SourceLocation());
|
clang::SourceLocation());
|
||||||
|
|
||||||
auto cSetterMemberExpr = new (Ctx) clang::MemberExpr(cSetterSelfExpr,
|
auto cSetterMemberExpr = clang::MemberExpr::CreateImplicit(Ctx,
|
||||||
|
cSetterSelfExpr,
|
||||||
/*isarrow=*/true,
|
/*isarrow=*/true,
|
||||||
clang::SourceLocation(),
|
|
||||||
fieldDecl,
|
fieldDecl,
|
||||||
fieldNameInfo,
|
|
||||||
fieldType,
|
fieldType,
|
||||||
clang::VK_LValue,
|
clang::VK_LValue,
|
||||||
clang::OK_BitField);
|
clang::OK_BitField);
|
||||||
|
|||||||
Reference in New Issue
Block a user