Skip to content

Commit 89b6646

Browse files
committed
Fix default initialization of struct fields
1 parent 172ea4f commit 89b6646

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cpp2rust/converter/models/converter_refcount.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,6 +1519,7 @@ bool ConverterRefCount::VisitCXXConstructExpr(clang::CXXConstructExpr *expr) {
15191519

15201520
bool ConverterRefCount::VisitImplicitValueInitExpr(
15211521
clang::ImplicitValueInitExpr *expr) {
1522+
PushConversionKind push(*this, ConversionKind::Unboxed);
15221523
if (auto arr_ty = clang::dyn_cast<clang::ArrayType>(
15231524
expr->getType()->getCanonicalTypeInternal().getTypePtr())) {
15241525
if (clang::isa<clang::ConstantArrayType>(arr_ty)) {

0 commit comments

Comments
 (0)