diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-25 19:47:55 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-25 19:47:55 +0000 |
commit | b1d39851bf19136fbf5c9cac1d46a463d92b50b8 (patch) | |
tree | 89369b96c50601b5177a9f3f863216c638836950 /unittests | |
parent | 76a74f72534452b53ba3ba054bd8ab27efc48487 (diff) | |
download | external_llvm-b1d39851bf19136fbf5c9cac1d46a463d92b50b8.zip external_llvm-b1d39851bf19136fbf5c9cac1d46a463d92b50b8.tar.gz external_llvm-b1d39851bf19136fbf5c9cac1d46a463d92b50b8.tar.bz2 |
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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp index cc8731b..070fb64 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"); } } |