Skip to content

Commit 8e0bea9

Browse files
committed
Call the new BinaryOperator factory function
The constructor is not public any more. This fixes the master-next build.
1 parent b462064 commit 8e0bea9

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,15 +1223,16 @@ makeBitFieldAccessors(ClangImporter::Implementation &Impl,
12231223
fieldType,
12241224
clang::VK_RValue,
12251225
clang::SourceLocation());
1226-
1227-
auto cSetterExpr = new (Ctx) clang::BinaryOperator(cSetterMemberExpr,
1228-
cSetterValueExpr,
1229-
clang::BO_Assign,
1230-
fieldType,
1231-
clang::VK_RValue,
1232-
clang::OK_Ordinary,
1233-
clang::SourceLocation(),
1234-
clang::FPOptions());
1226+
1227+
auto cSetterExpr = clang::BinaryOperator::Create(Ctx,
1228+
cSetterMemberExpr,
1229+
cSetterValueExpr,
1230+
clang::BO_Assign,
1231+
fieldType,
1232+
clang::VK_RValue,
1233+
clang::OK_Ordinary,
1234+
clang::SourceLocation(),
1235+
clang::FPOptions());
12351236

12361237
cSetterDecl->setBody(cSetterExpr);
12371238
}

0 commit comments

Comments
 (0)