Skip to content

Commit fd5c528

Browse files
author
Daniel Kroening
committed
rewrite a no-op
1 parent e7d1180 commit fd5c528

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/cpp/cpp_constructor.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,8 @@ optionalt<codet> cpp_typecheckt::cpp_constructor(
115115

116116
auto i_code = cpp_constructor(source_location, index, tmp_operands);
117117

118-
if(!i_code.has_value())
119-
{
120-
new_code.is_nil();
121-
break;
122-
}
123-
124-
new_code.move(i_code.value());
118+
if(i_code.has_value())
119+
new_code.move(i_code.value());
125120
}
126121
return new_code;
127122
}

0 commit comments

Comments
 (0)