From: Rafael Espindola Date: Fri, 25 Oct 2013 19:47:55 +0000 (+0000) Subject: Try to fix the build on windows. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b1d39851bf19136fbf5c9cac1d46a463d92b50b8;p=oota-llvm.git Try to fix the build on windows. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193431 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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"); } }