Skip to content

Commit 051fade

Browse files
committed
[clang][Interp][NFC] Use delegate() address-of operators
1 parent c149ff3 commit 051fade

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
@@ -2549,9 +2549,7 @@ bool ByteCodeExprGen<Emitter>::VisitUnaryOperator(const UnaryOperator *E) {
25492549
return DiscardResult ? this->emitPop(*T, E) : true;
25502550
case UO_AddrOf: // &x
25512551
// We should already have a pointer when we get here.
2552-
if (!this->visit(SubExpr))
2553-
return false;
2554-
return DiscardResult ? this->emitPop(*T, E) : true;
2552+
return this->delegate(SubExpr);
25552553
case UO_Deref: // *x
25562554
return dereference(
25572555
SubExpr, DerefKind::Read,

0 commit comments

Comments
 (0)