diff --git a/compiler-rt/lib/scudo/standalone/tests/combined_test.cpp b/compiler-rt/lib/scudo/standalone/tests/combined_test.cpp --- a/compiler-rt/lib/scudo/standalone/tests/combined_test.cpp +++ b/compiler-rt/lib/scudo/standalone/tests/combined_test.cpp @@ -117,7 +117,7 @@ // class size maps. P = Allocator->allocate(DataSize, Origin); memset(P, Marker, DataSize); - for (scudo::sptr Delta = -32; Delta < 32; Delta += 8) { + for (scudo::sptr Delta = 32; Delta > -32; Delta -= 8) { const scudo::uptr NewSize = DataSize + Delta; void *NewP = Allocator->reallocate(P, NewSize); EXPECT_EQ(NewP, P);