From 465f65a549e5fd092f6da8b09d0f1d50ca7f4ddc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Thu, 20 Jul 2023 10:51:29 +0200 Subject: [PATCH] [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. --- clang/lib/AST/Interp/ByteCodeExprGen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/lib/AST/Interp/ByteCodeExprGen.cpp b/clang/lib/AST/Interp/ByteCodeExprGen.cpp index c6c4c78..ad83875 100644 --- a/clang/lib/AST/Interp/ByteCodeExprGen.cpp +++ b/clang/lib/AST/Interp/ByteCodeExprGen.cpp @@ -1806,6 +1806,7 @@ bool ByteCodeExprGen::VisitCXXMemberCallExpr( template bool ByteCodeExprGen::VisitCXXDefaultInitExpr( const CXXDefaultInitExpr *E) { + assert(classify(E->getType())); return this->visit(E->getExpr()); } -- 2.7.4