[llvm-commits] [llvm] r61596 - /llvm/trunk/unittests/ADT/ImmutableSetTest.cpp

Bill Wendling isanbard at gmail.com
Fri Jan 2 15:13:30 PST 2009


Author: void
Date: Fri Jan  2 17:13:30 2009
New Revision: 61596

URL: http://llvm.org/viewvc/llvm-project?rev=61596&view=rev
Log:
Reassign the buffer to the pointer so that we don't overwrite memory.

Modified:
    llvm/trunk/unittests/ADT/ImmutableSetTest.cpp

Modified: llvm/trunk/unittests/ADT/ImmutableSetTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/ImmutableSetTest.cpp?rev=61596&r1=61595&r2=61596&view=diff

==============================================================================
--- llvm/trunk/unittests/ADT/ImmutableSetTest.cpp (original)
+++ llvm/trunk/unittests/ADT/ImmutableSetTest.cpp Fri Jan  2 17:13:30 2009
@@ -172,9 +172,11 @@
 
   ASSERT_EQ(obj.counter, 6);
 
+  ptr = buffer;
   S2.foreach<MyIter>(obj);
   ASSERT_EQ(obj.counter, 6+3);
 
+  ptr = buffer;
   S.foreach<MyIter>(obj);
   ASSERT_EQ(obj.counter, 6+3+0);
 }





More information about the llvm-commits mailing list