From 4f9d346fa007560c05ce01dc3089f8a0231d7d8f Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 15 Jun 2015 15:42:26 +0000 Subject: [LinkerTest] Use LLVMDisposeMessage to free error string. LLVMDisposeMessage is just a thing wrapper around free at the moment, but it's the proper API to use here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239731 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Linker/LinkModulesTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unittests/Linker') diff --git a/unittests/Linker/LinkModulesTest.cpp b/unittests/Linker/LinkModulesTest.cpp index 2a0a7bfa847..45f1308d3bd 100644 --- a/unittests/Linker/LinkModulesTest.cpp +++ b/unittests/Linker/LinkModulesTest.cpp @@ -216,7 +216,7 @@ TEST_F(LinkModuleTest, CAPIFailure) { LLVMLinkerDestroySource, &errout); EXPECT_EQ(1, result); EXPECT_STREQ("Linking globals named 'foo': symbol multiply defined!", errout); - std::free(errout); + LLVMDisposeMessage(errout); } } // end anonymous namespace -- cgit v1.2.3