Skip to content

Commit 4cec0ba

Browse files
authored
[clang][bytecode][NFC] Simplify VisitCXXDefaultArgExpr (#123024)
We have `discard()` these days.
1 parent 2c34632 commit 4cec0ba

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

clang/lib/AST/ByteCode/Compiler.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4815,12 +4815,7 @@ template <class Emitter>
48154815
bool Compiler<Emitter>::VisitCXXDefaultArgExpr(const CXXDefaultArgExpr *E) {
48164816
SourceLocScope<Emitter> SLS(this, E);
48174817

4818-
const Expr *SubExpr = E->getExpr();
4819-
if (std::optional<PrimType> T = classify(E->getExpr()))
4820-
return this->visit(SubExpr);
4821-
4822-
assert(Initializing);
4823-
return this->visitInitializer(SubExpr);
4818+
return this->delegate(E->getExpr());
48244819
}
48254820

48264821
template <class Emitter>

0 commit comments

Comments
 (0)