[llvm] r179239 - Delete the functions F1 and F2 to appease the valgrind bot.

Joey Gouly joey.gouly at arm.com
Wed Apr 10 16:21:26 PDT 2013


Author: joey
Date: Wed Apr 10 18:21:26 2013
New Revision: 179239

URL: http://llvm.org/viewvc/llvm-project?rev=179239&view=rev
Log:
Delete the functions F1 and F2 to appease the valgrind bot.

Modified:
    llvm/trunk/unittests/Transforms/Utils/Cloning.cpp

Modified: llvm/trunk/unittests/Transforms/Utils/Cloning.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Transforms/Utils/Cloning.cpp?rev=179239&r1=179238&r2=179239&view=diff
==============================================================================
--- llvm/trunk/unittests/Transforms/Utils/Cloning.cpp (original)
+++ llvm/trunk/unittests/Transforms/Utils/Cloning.cpp Wed Apr 10 18:21:26 2013
@@ -168,6 +168,9 @@ TEST_F(CloneInstruction, Attributes) {
 
   CloneFunctionInto(F2, F1, VMap, false, Returns);
   EXPECT_FALSE(F2->arg_begin()->hasNoCaptureAttr());
+
+  delete F1;
+  delete F2;
 }
 
 }





More information about the llvm-commits mailing list