summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-10-25 19:47:55 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-10-25 19:47:55 +0000
commite5bf24684fbdb41388a66bfd2e5bc9eb94361387 (patch)
tree87c18c228e1bc53c2543403139bc666ca79d21b8
parent0794a915a421b1337c543fba17e04fba660341a4 (diff)
downloadbcm5719-llvm-e5bf24684fbdb41388a66bfd2e5bc9eb94361387.tar.gz
bcm5719-llvm-e5bf24684fbdb41388a66bfd2e5bc9eb94361387.zip
Try to fix the build on windows.
llvm-svn: 193431
-rw-r--r--llvm/unittests/Support/Path.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp
index cc8731b3c07..070fb64aad5 100644
--- a/llvm/unittests/Support/Path.cpp
+++ b/llvm/unittests/Support/Path.cpp
@@ -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");
}
}
OpenPOWER on IntegriCloud