summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Linker/LinkModulesTest.cpp
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
commitf1d570d4c5182ca05b131c302bbb3763e920e983 (patch)
treec7259db762ac30d8ce5efae70f46e005f1c010f6 /llvm/unittests/Linker/LinkModulesTest.cpp
parentd246a5ac1679f06640426a41ba97138ba8275e32 (diff)
downloadbcm5719-llvm-f1d570d4c5182ca05b131c302bbb3763e920e983.tar.gz
bcm5719-llvm-f1d570d4c5182ca05b131c302bbb3763e920e983.zip
[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. llvm-svn: 239731
Diffstat (limited to 'llvm/unittests/Linker/LinkModulesTest.cpp')
-rw-r--r--llvm/unittests/Linker/LinkModulesTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Linker/LinkModulesTest.cpp b/llvm/unittests/Linker/LinkModulesTest.cpp
index 2a0a7bfa847..45f1308d3bd 100644
--- a/llvm/unittests/Linker/LinkModulesTest.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud