From e57a400125b57d0534414ac4e1235b3ba3506a4d Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Sat, 3 Aug 2019 15:40:00 +0000 Subject: [PATCH] IR: Cleanup after test to silence ASAN builds git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367758 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/IR/AsmWriterTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/unittests/IR/AsmWriterTest.cpp b/unittests/IR/AsmWriterTest.cpp index a9d761d5209..4fa18896591 100644 --- a/unittests/IR/AsmWriterTest.cpp +++ b/unittests/IR/AsmWriterTest.cpp @@ -44,6 +44,7 @@ TEST(AsmWriterTest, DebugPrintDetachedArgument) { raw_string_ostream OS(S); Arg->print(OS); EXPECT_EQ(S, "i32 "); + delete Arg; } TEST(AsmWriterTest, DumpDIExpression) { -- 2.40.0