Skip to content

Commit a7f256f

Browse files
committed
[clang][Interp][NFC] Use delegate() once more
1 parent 5db201f commit a7f256f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/AST/Interp/ByteCodeExprGen.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2394,9 +2394,7 @@ bool ByteCodeExprGen<Emitter>::VisitUnaryOperator(const UnaryOperator *E) {
23942394
case UO_Real: // __real x
23952395
case UO_Imag: // __imag x
23962396
case UO_Extension:
2397-
if (DiscardResult)
2398-
return this->discard(SubExpr);
2399-
return this->visit(SubExpr);
2397+
return this->delegate(SubExpr);
24002398
case UO_Coawait:
24012399
assert(false && "Unhandled opcode");
24022400
}

0 commit comments

Comments
 (0)