Skip to content

Commit 2744d9b

Browse files
committed
[clang][Interp][NFC] Use delegate() vor ParenExprs
Now what we have delegate() we can use it here.
1 parent 211f7dd commit 2744d9b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

clang/lib/AST/Interp/ByteCodeExprGen.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,8 @@ bool ByteCodeExprGen<Emitter>::VisitFloatingLiteral(const FloatingLiteral *E) {
222222
}
223223

224224
template <class Emitter>
225-
bool ByteCodeExprGen<Emitter>::VisitParenExpr(const ParenExpr *PE) {
226-
const Expr *SubExpr = PE->getSubExpr();
227-
228-
if (DiscardResult)
229-
return this->discard(SubExpr);
230-
231-
return this->visit(SubExpr);
225+
bool ByteCodeExprGen<Emitter>::VisitParenExpr(const ParenExpr *E) {
226+
return this->delegate(E->getSubExpr());
232227
}
233228

234229
template <class Emitter>

0 commit comments

Comments
 (0)