summaryrefslogtreecommitdiff
path: root/unittests
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
commitb1d39851bf19136fbf5c9cac1d46a463d92b50b8 (patch)
tree89369b96c50601b5177a9f3f863216c638836950 /unittests
parent76a74f72534452b53ba3ba054bd8ab27efc48487 (diff)
downloadllvm-b1d39851bf19136fbf5c9cac1d46a463d92b50b8.tar.gz
llvm-b1d39851bf19136fbf5c9cac1d46a463d92b50b8.tar.bz2
llvm-b1d39851bf19136fbf5c9cac1d46a463d92b50b8.tar.xz
Try to fix the build on windows.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193431 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Support/Path.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp
index cc8731b3c0..070fb64aad 100644
--- a/unittests/Support/Path.cpp
+++ b/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");
}
}