From b1d39851bf19136fbf5c9cac1d46a463d92b50b8 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 25 Oct 2013 19:47:55 +0000 Subject: Try to fix the build on windows. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193431 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Support/Path.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unittests') 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 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"); } } -- cgit v1.1