[clang] [Clang] Fixed an assertion in constant evaluation of EmbedExpr inside array initializers. (PR #182257)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 22 13:28:38 PST 2026
================
@@ -14770,15 +14770,16 @@ bool ArrayExprEvaluator::VisitCXXParenListOrInitListExpr(
Value = SL->getCodeUnit(I);
if (DestTy->isIntegerType()) {
Result.getArrayInitializedElt(ArrayIndex) = APValue(Value);
- } else {
- assert(DestTy->isFloatingType() && "unexpected type");
+ } else if (DestTy->isFloatingType()) {
----------------
ojhunt wrote:
@tbaederr ah! I was 100% thinking about the now popular fp16 (I don't think it's possible to say "I want fp80" is it?
https://github.com/llvm/llvm-project/pull/182257
More information about the cfe-commits
mailing list