================
@@ -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 out of curiosity would it be possible to create a case where this
could make this happen in general? e.g getting destty to be an invalid - for
the target - floating point type without it triggering an error on the
unsupported type. Principally thinking in terms of isFloatingPointType() being
the obvious function to call, and I assume (as here) most folk would assume
isFloatingType() would only be true if it's already been ensured that the type
exists/is-valid-for the target.
https://github.com/llvm/llvm-project/pull/182257
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits