1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Fixing compile errors related to changes with MemoryBuffer::getFile.

llvm-svn: 212415
This commit is contained in:
Aaron Ballman 2014-07-06 19:34:52 +00:00
parent 858b9e1423
commit b97f52e5e0

View File

@ -558,9 +558,9 @@ TEST_F(FileSystemTest, CarriageReturn) {
File << '\n';
}
{
std::unique_ptr<MemoryBuffer> Buf;
MemoryBuffer::getFile(FilePathname.c_str(), Buf);
EXPECT_EQ(Buf->getBuffer(), "\r\n");
auto Buf = MemoryBuffer::getFile(FilePathname.c_str());
EXPECT_FALSE(Buf);
EXPECT_EQ(Buf.get()->getBuffer(), "\r\n");
}
{
@ -569,9 +569,9 @@ TEST_F(FileSystemTest, CarriageReturn) {
File << '\n';
}
{
std::unique_ptr<MemoryBuffer> Buf;
MemoryBuffer::getFile(FilePathname.c_str(), Buf);
EXPECT_EQ(Buf->getBuffer(), "\n");
auto Buf = MemoryBuffer::getFile(FilePathname.c_str());
EXPECT_FALSE(Buf);
EXPECT_EQ(Buf.get()->getBuffer(), "\n");
}
ASSERT_NO_ERROR(fs::remove(Twine(FilePathname)));
}