diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp index cc8731b3c07..070fb64aad5 100644 --- a/unittests/Support/Path.cpp +++ b/unittests/Support/Path.cpp @@ -461,7 +461,7 @@ TEST_F(FileSystemTest, CarriageReturn) { } { OwningPtr 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 Buf; - MemoryBuffer::getFile(FilePathname, Buf); + MemoryBuffer::getFile(FilePathname.c_str(), Buf); EXPECT_EQ(Buf->getBuffer(), "\n"); } }