Skip to content

Commit 78b9032

Browse files
committed
Short-circuit IsRedundantCopyInConversion
1 parent cd2b649 commit 78b9032

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cpp2rust/converter/converter_lib.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,7 @@ static bool IsIteratorType(clang::QualType qt) {
658658

659659
bool IsRedundantCopyInConversion(clang::ASTContext &ctx,
660660
const clang::CXXConstructExpr *expr) {
661+
return false;
661662
if (auto parents = ctx.getParentMapContext().getParents(*expr);
662663
!parents.empty()) {
663664
if (auto *parent = parents[0].get<clang::CXXConstructExpr>()) {

0 commit comments

Comments
 (0)