aboutsummaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-03-16 12:32:03 +0000
committerGabor Greif <ggreif@gmail.com>2010-03-16 12:32:03 +0000
commit642c066906488715220dd87c5b976c67bb8a303d (patch)
treea11e357d5f4794fa220b077b24d473e82ad3f41e /unittests
parent984751e5a78835b76fc7f2a09d08161c75c1fc81 (diff)
downloadexternal_llvm-642c066906488715220dd87c5b976c67bb8a303d.zip
external_llvm-642c066906488715220dd87c5b976c67bb8a303d.tar.gz
external_llvm-642c066906488715220dd87c5b976c67bb8a303d.tar.bz2
appease valgrind testers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98628 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/VMCore/InstructionsTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/unittests/VMCore/InstructionsTest.cpp b/unittests/VMCore/InstructionsTest.cpp
index 8156348..2d98cad 100644
--- a/unittests/VMCore/InstructionsTest.cpp
+++ b/unittests/VMCore/InstructionsTest.cpp
@@ -31,6 +31,10 @@ TEST(InstructionsTest, ReturnInst) {
EXPECT_EQ(r1->getOperand(0), One);
++b;
EXPECT_EQ(b, r1->op_end());
+
+ // clean up
+ delete r0;
+ delete r1;
}
} // end anonymous namespace