From: Bill Wendling Date: Fri, 2 Jan 2009 23:13:30 +0000 (+0000) Subject: Reassign the buffer to the pointer so that we don't overwrite memory. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=3d45f53b7a2cbc336e4980ccb3a41ba2c3874ff4 Reassign the buffer to the pointer so that we don't overwrite memory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61596 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/ADT/ImmutableSetTest.cpp b/unittests/ADT/ImmutableSetTest.cpp index 2282cb8f363..74cd684e5a0 100644 --- a/unittests/ADT/ImmutableSetTest.cpp +++ b/unittests/ADT/ImmutableSetTest.cpp @@ -172,9 +172,11 @@ TEST_F(ImmutableSetTest, Callback2CharSetTest) { ASSERT_EQ(obj.counter, 6); + ptr = buffer; S2.foreach(obj); ASSERT_EQ(obj.counter, 6+3); + ptr = buffer; S.foreach(obj); ASSERT_EQ(obj.counter, 6+3+0); }