Skip to content

Commit

Permalink
[clang][Interp][NFC] Use delegate() once more
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaederr committed Sep 13, 2023
1 parent 5db201f commit a7f256f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions clang/lib/AST/Interp/ByteCodeExprGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2394,9 +2394,7 @@ bool ByteCodeExprGen<Emitter>::VisitUnaryOperator(const UnaryOperator *E) {
case UO_Real: // __real x
case UO_Imag: // __imag x
case UO_Extension:
if (DiscardResult)
return this->discard(SubExpr);
return this->visit(SubExpr);
return this->delegate(SubExpr);
case UO_Coawait:
assert(false && "Unhandled opcode");
}
Expand Down

0 comments on commit a7f256f

Please sign in to comment.