diff --git a/clang/lib/AST/Interp/Context.h b/clang/lib/AST/Interp/Context.h index c7620921e467e..dbb63e3691816 100644 --- a/clang/lib/AST/Interp/Context.h +++ b/clang/lib/AST/Interp/Context.h @@ -75,6 +75,7 @@ class Context final { /// Classifies an expression. std::optional classify(const Expr *E) const { + assert(E); if (E->isGLValue()) { if (E->getType()->isFunctionType()) return PT_FnPtr;