diff options
Diffstat (limited to 'unittests/Transforms')
-rw-r--r-- | unittests/Transforms/Utils/Cloning.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unittests/Transforms/Utils/Cloning.cpp b/unittests/Transforms/Utils/Cloning.cpp index 5930d5ef98..e19ae5bc2f 100644 --- a/unittests/Transforms/Utils/Cloning.cpp +++ b/unittests/Transforms/Utils/Cloning.cpp @@ -168,6 +168,9 @@ TEST_F(CloneInstruction, Attributes) { CloneFunctionInto(F2, F1, VMap, false, Returns); EXPECT_FALSE(F2->arg_begin()->hasNoCaptureAttr()); + + delete F1; + delete F2; } } |