[llvm] r239731 - [LinkerTest] Use LLVMDisposeMessage to free error string.
Benjamin Kramer
benny.kra at googlemail.com
Mon Jun 15 08:42:26 PDT 2015
Author: d0k
Date: Mon Jun 15 10:42:26 2015
New Revision: 239731
URL: http://llvm.org/viewvc/llvm-project?rev=239731&view=rev
Log:
[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.
Modified:
llvm/trunk/unittests/Linker/LinkModulesTest.cpp
Modified: llvm/trunk/unittests/Linker/LinkModulesTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Linker/LinkModulesTest.cpp?rev=239731&r1=239730&r2=239731&view=diff
==============================================================================
--- llvm/trunk/unittests/Linker/LinkModulesTest.cpp (original)
+++ llvm/trunk/unittests/Linker/LinkModulesTest.cpp Mon Jun 15 10:42:26 2015
@@ -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
More information about the llvm-commits
mailing list