================
@@ -3490,7 +3490,15 @@ inline bool AllocN(InterpState &S, CodePtr OpPC,
PrimType T, const Expr *Source,
S.Stk.push<Pointer>(0, nullptr);
return true;
}
- assert(NumElements.isPositive());
+ if (!NumElements.isPositive()) {
----------------
tbaederr wrote:
```suggestion
if (NumElements.isNegative()) {
```
https://github.com/llvm/llvm-project/pull/155737
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits