summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2019-08-03 15:40:00 +0000
committerTim Northover <tnorthover@apple.com>2019-08-03 15:40:00 +0000
commit71b447605afafabaf9af11eb6b68f7a05a680727 (patch)
tree4c82850644b91b98941564a43a6e7928d2c70994
parent7849e4163583288ea53837a4e463af472bfe5f02 (diff)
downloadbcm5719-llvm-71b447605afafabaf9af11eb6b68f7a05a680727.tar.gz
bcm5719-llvm-71b447605afafabaf9af11eb6b68f7a05a680727.zip
IR: Cleanup after test to silence ASAN builds
llvm-svn: 367758
-rw-r--r--llvm/unittests/IR/AsmWriterTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/unittests/IR/AsmWriterTest.cpp b/llvm/unittests/IR/AsmWriterTest.cpp
index a9d761d5209..4fa18896591 100644
--- a/llvm/unittests/IR/AsmWriterTest.cpp
+++ b/llvm/unittests/IR/AsmWriterTest.cpp
@@ -44,6 +44,7 @@ TEST(AsmWriterTest, DebugPrintDetachedArgument) {
raw_string_ostream OS(S);
Arg->print(OS);
EXPECT_EQ(S, "i32 <badref>");
+ delete Arg;
}
TEST(AsmWriterTest, DumpDIExpression) {
OpenPOWER on IntegriCloud