Author: Timm Bäder Date: 2023-07-20T14:06:09+02:00 New Revision: 465f65a549e5fd092f6da8b09d0f1d50ca7f4ddc
URL: https://github.com/llvm/llvm-project/commit/465f65a549e5fd092f6da8b09d0f1d50ca7f4ddc DIFF: https://github.com/llvm/llvm-project/commit/465f65a549e5fd092f6da8b09d0f1d50ca7f4ddc.diff LOG: [clang][Interp][NFC] Add a debugging assertion 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. Added: Modified: clang/lib/AST/Interp/ByteCodeExprGen.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/Interp/ByteCodeExprGen.cpp b/clang/lib/AST/Interp/ByteCodeExprGen.cpp index c6c4c787e5d849..ad838755c47a58 100644 --- a/clang/lib/AST/Interp/ByteCodeExprGen.cpp +++ b/clang/lib/AST/Interp/ByteCodeExprGen.cpp @@ -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()); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits