================
@@ -329,6 +329,9 @@ ConstantExpr::getStorageKind(const Type *T, const
ASTContext &Context) {
ConstantExpr::ConstantExpr(Expr *SubExpr, ConstantResultStorageKind
StorageKind,
bool IsImmediateInvocation)
: FullExpr(ConstantExprClass, SubExpr) {
+
+ if (!SubExpr->getType()->isVoidType())
----------------
AaronBallman wrote:
Perverse thought: what about an attributed void type? e.g., `void
[[clang::annotate_type("oh no")]]`
https://github.com/llvm/llvm-project/pull/229761
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits