summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-10-25 19:06:52 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-10-25 19:06:52 +0000
commit1d19c8f03aa64c4400fff8deb32be950381a21a8 (patch)
treed5bf822091a46013077a3db44c0163a304a3c86d /llvm/unittests/Support
parent1a3605cdbe807b2ffcc985b35e654bfb5a18cd40 (diff)
downloadbcm5719-llvm-1d19c8f03aa64c4400fff8deb32be950381a21a8.tar.gz
bcm5719-llvm-1d19c8f03aa64c4400fff8deb32be950381a21a8.zip
Change MemoryBuffer::getFile to take a Twine.
llvm-svn: 193429
Diffstat (limited to 'llvm/unittests/Support')
-rw-r--r--llvm/unittests/Support/MemoryBufferTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/MemoryBufferTest.cpp b/llvm/unittests/Support/MemoryBufferTest.cpp
index aa7ff6f3575..2b8806c394f 100644
--- a/llvm/unittests/Support/MemoryBufferTest.cpp
+++ b/llvm/unittests/Support/MemoryBufferTest.cpp
@@ -79,7 +79,7 @@ TEST_F(MemoryBufferTest, NullTerminator4K) {
OF.close();
OwningPtr<MemoryBuffer> MB;
- error_code EC = MemoryBuffer::getFile(TestPath, MB);
+ error_code EC = MemoryBuffer::getFile(TestPath.c_str(), MB);
ASSERT_FALSE(EC);
const char *BufData = MB->getBufferStart();
OpenPOWER on IntegriCloud