mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-18 03:37:31 +00:00
[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
This commit is contained in:
parent
1ec22e4a9c
commit
4f9d346fa0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user