diff options
| author | Bill Wendling <isanbard@gmail.com> | 2009-01-02 23:13:30 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2009-01-02 23:13:30 +0000 |
| commit | aeac31c8a15bd5e399dcef65f98b11239f18f998 (patch) | |
| tree | a119c2bc6560558f76e6c5842f129ff2cb4712ec | |
| parent | fcef90909a0e849a4220019faedcad014ec8f5ad (diff) | |
| download | bcm5719-llvm-aeac31c8a15bd5e399dcef65f98b11239f18f998.tar.gz bcm5719-llvm-aeac31c8a15bd5e399dcef65f98b11239f18f998.zip | |
Reassign the buffer to the pointer so that we don't overwrite memory.
llvm-svn: 61596
| -rw-r--r-- | llvm/unittests/ADT/ImmutableSetTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/ImmutableSetTest.cpp b/llvm/unittests/ADT/ImmutableSetTest.cpp index 2282cb8f363..74cd684e5a0 100644 --- a/llvm/unittests/ADT/ImmutableSetTest.cpp +++ b/llvm/unittests/ADT/ImmutableSetTest.cpp @@ -172,9 +172,11 @@ TEST_F(ImmutableSetTest, Callback2CharSetTest) { 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); } |

