================
@@ -384,6 +488,7 @@ ConstantExpr *ConstantExpr::CreateEmpty(const ASTContext 
&Context,
 void ConstantExpr::MoveIntoResult(APValue &Value, const ASTContext &Context) {
   assert((unsigned)getStorageKind(Value) <= ConstantExprBits.ResultKind &&
          "Invalid storage for this value kind");
+  assertAPValueKind(this, Value);
----------------
tbaederr wrote:

I wouldn't say it's an expensive check; as for `NDEBUG`, I'm not sure; is 
anyone doing performance-sensitive builds with assertions enabled?

https://github.com/llvm/llvm-project/pull/230388
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to