Delete the functions F1 and F2 to appease the valgrind bot.
authorJoey Gouly <joey.gouly@arm.com>
Wed, 10 Apr 2013 23:21:26 +0000 (23:21 +0000)
committerJoey Gouly <joey.gouly@arm.com>
Wed, 10 Apr 2013 23:21:26 +0000 (23:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179239 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Transforms/Utils/Cloning.cpp

index 5930d5ef98de6713a57ad5af295bb83616632f78..e19ae5bc2fb4be6d6eb9f274189e935aa8b5d3f6 100644 (file)
@@ -168,6 +168,9 @@ TEST_F(CloneInstruction, Attributes) {
 
   CloneFunctionInto(F2, F1, VMap, false, Returns);
   EXPECT_FALSE(F2->arg_begin()->hasNoCaptureAttr());
+
+  delete F1;
+  delete F2;
 }
 
 }