diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-25 19:06:52 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-25 19:06:52 +0000 |
commit | 76a74f72534452b53ba3ba054bd8ab27efc48487 (patch) | |
tree | f0d039a2c0a3b24f73ea97eb204e16a380c318ac /unittests/Support | |
parent | a954618c6e6c5f94d3cedc0b6bc19dbc49e56ac2 (diff) | |
download | external_llvm-76a74f72534452b53ba3ba054bd8ab27efc48487.zip external_llvm-76a74f72534452b53ba3ba054bd8ab27efc48487.tar.gz external_llvm-76a74f72534452b53ba3ba054bd8ab27efc48487.tar.bz2 |
Change MemoryBuffer::getFile to take a Twine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193429 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Support')
-rw-r--r-- | unittests/Support/MemoryBufferTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/Support/MemoryBufferTest.cpp b/unittests/Support/MemoryBufferTest.cpp index aa7ff6f..2b8806c 100644 --- a/unittests/Support/MemoryBufferTest.cpp +++ b/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(); |