================
@@ -6691,7 +6691,7 @@ static bool HandleDestructionImpl(EvalInfo &Info, 
SourceRange CallRange,
     if (Size && Size > Value.getArrayInitializedElts())
       expandArray(Value, Value.getArraySize() - 1);
 
-    for (; Size != 0; --Size) {
+    for (Size = Value.getArraySize(); Size != 0; --Size) {
----------------
AaronBallman wrote:

Can you explain why this change is needed?

https://github.com/llvm/llvm-project/pull/104586
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to