Skip to content

Commit a417fcf

Browse files
committed
Revert unrelated function pointer change
1 parent 778d72b commit a417fcf

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

cpp2rust/converter/converter.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,11 +1669,7 @@ bool Converter::VisitImplicitCastExpr(clang::ImplicitCastExpr *expr) {
16691669
ConvertEqualsNullPtr(sub_expr);
16701670
break;
16711671
case clang::CastKind::CK_NullToPointer:
1672-
if (type->isFunctionPointerType()) {
1673-
StrCat("None");
1674-
} else {
1675-
StrCat(keyword_default_);
1676-
}
1672+
StrCat(keyword_default_);
16771673
computed_expr_type_ = ComputedExprType::FreshPointer;
16781674
break;
16791675
default:

0 commit comments

Comments
 (0)