summaryrefslogtreecommitdiffstats
path: root/unittests/Support/Path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/Support/Path.cpp')
-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 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");
}
}