summaryrefslogtreecommitdiff
path: root/unittests/Linker
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-06-15 15:42:26 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-06-15 15:42:26 +0000
commit4f9d346fa007560c05ce01dc3089f8a0231d7d8f (patch)
treee4534d23031d53b6b14fd62f020acd567dbb8542 /unittests/Linker
parent1ec22e4a9c5f3344ec6d46b0b2990a4d3a82cadf (diff)
[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
Diffstat (limited to 'unittests/Linker')
-rw-r--r--unittests/Linker/LinkModulesTest.cpp2
1 files changed, 1 insertions, 1 deletions
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