Skip to content

Commit 20320b9

Browse files
committed
Box decompositions
1 parent 34dd801 commit 20320b9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎cpp2rust/converter/models/boxed_vars.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ bool CanUnbox(const clang::VarDecl *decl) {
5353
}
5454
return (decl->isLocalVarDecl() || clang::isa<clang::ParmVarDecl>(decl)) &&
5555
!IsGlobalVar(decl) && !decl->isInitCapture() &&
56+
!clang::isa<clang::DecompositionDecl>(decl) &&
5657
!IsVaListType(decl->getType());
5758
}
5859

0 commit comments

Comments
 (0)