Skip to content

Commit

Permalink
[clang][Interp][NFC] Add a debugging assertion
Browse files Browse the repository at this point in the history
We will probably have to remove this at some point, but until then, make
sure we're not running into much-harder-to-debug problems later on.
  • Loading branch information
tbaederr committed Jul 20, 2023
1 parent a2160dd commit 465f65a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clang/lib/AST/Interp/ByteCodeExprGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1806,6 +1806,7 @@ bool ByteCodeExprGen<Emitter>::VisitCXXMemberCallExpr(
template <class Emitter>
bool ByteCodeExprGen<Emitter>::VisitCXXDefaultInitExpr(
const CXXDefaultInitExpr *E) {
assert(classify(E->getType()));
return this->visit(E->getExpr());
}

Expand Down

0 comments on commit 465f65a

Please sign in to comment.