diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp index 588f4cf6aa8c..77e8b9488a8c 100644 --- a/clang/lib/Parse/ParseExpr.cpp +++ b/clang/lib/Parse/ParseExpr.cpp @@ -943,8 +943,7 @@ ExprResult Parser::ParseCastExpression(CastParseKind ParseKind, ParenParseOption ParenExprType; switch (ParseKind) { case CastParseKind::UnaryExprOnly: - if (!getLangOpts().CPlusPlus) - ParenExprType = CompoundLiteral; + assert(getLangOpts().CPlusPlus && "not possible to get here in C"); [[fallthrough]]; case CastParseKind::AnyCastExpr: ParenExprType = ParenParseOption::CastExpr;