[llvm] r193431 - Try to fix the build on windows.
Rafael Espindola
rafael.espindola at gmail.com
Fri Oct 25 12:47:55 PDT 2013
Author: rafael
Date: Fri Oct 25 14:47:55 2013
New Revision: 193431
URL: http://llvm.org/viewvc/llvm-project?rev=193431&view=rev
Log:
Try to fix the build on windows.
Modified:
llvm/trunk/unittests/Support/Path.cpp
Modified: llvm/trunk/unittests/Support/Path.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/Path.cpp?rev=193431&r1=193430&r2=193431&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/Path.cpp (original)
+++ llvm/trunk/unittests/Support/Path.cpp Fri Oct 25 14:47:55 2013
@@ -461,7 +461,7 @@ TEST_F(FileSystemTest, CarriageReturn) {
}
{
OwningPtr<MemoryBuffer> Buf;
- MemoryBuffer::getFile(FilePathname, Buf);
+ MemoryBuffer::getFile(FilePathname.c_str(), Buf);
EXPECT_EQ(Buf->getBuffer(), "\r\n");
}
@@ -472,7 +472,7 @@ TEST_F(FileSystemTest, CarriageReturn) {
}
{
OwningPtr<MemoryBuffer> Buf;
- MemoryBuffer::getFile(FilePathname, Buf);
+ MemoryBuffer::getFile(FilePathname.c_str(), Buf);
EXPECT_EQ(Buf->getBuffer(), "\n");
}
}
More information about the llvm-commits
mailing list