Skip to content

Commit

Permalink
refactor(to_cpp1): remove stale non-rvalue context
Browse files Browse the repository at this point in the history
  • Loading branch information
JohelEGP committed Dec 21, 2023
1 parent 095be49 commit 9e0b7c4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions source/to_cpp1.h
Original file line number Diff line number Diff line change
Expand Up @@ -2203,9 +2203,7 @@ class cppfront
emit(*n.condition);
printer.print_cpp2("; ", n.position());
printer.add_pad_in_this_line(-10);
in_non_rvalue_context.push_back(true);
emit(*n.next_expression);
in_non_rvalue_context.pop_back();
}
printer.print_cpp2(" ) ", n.position());
if (!labelname.empty()) {
Expand Down

0 comments on commit 9e0b7c4

Please sign in to comment.