diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-10-07 19:09:05 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-10-07 19:09:05 +0000 |
commit | d2c7fd82078573e8d06a28380cda65065228c356 (patch) | |
tree | cf1b0aabeba3440e683dc25f8fd2b664e13d48a7 /llvm/lib/Support/MemoryBuffer.cpp | |
parent | 80ebf8da7ed85e7cc3f04c1112e62a95b875a79d (diff) | |
download | bcm5719-llvm-d2c7fd82078573e8d06a28380cda65065228c356.tar.gz bcm5719-llvm-d2c7fd82078573e8d06a28380cda65065228c356.zip |
Remove the IsVolatileSize parameter of getOpenFileSlice.
getOpenFileSlice gets passed the map size, so it makes no sense to say that
the size is volatile. The code will not even compute the size.
llvm-svn: 219226
Diffstat (limited to 'llvm/lib/Support/MemoryBuffer.cpp')
-rw-r--r-- | llvm/lib/Support/MemoryBuffer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Support/MemoryBuffer.cpp b/llvm/lib/Support/MemoryBuffer.cpp index 9ccbcbf587d..a9ccf98f1b3 100644 --- a/llvm/lib/Support/MemoryBuffer.cpp +++ b/llvm/lib/Support/MemoryBuffer.cpp @@ -406,9 +406,10 @@ MemoryBuffer::getOpenFile(int FD, const Twine &Filename, uint64_t FileSize, ErrorOr<std::unique_ptr<MemoryBuffer>> MemoryBuffer::getOpenFileSlice(int FD, const Twine &Filename, uint64_t MapSize, - int64_t Offset, bool IsVolatileSize) { + int64_t Offset) { + assert(MapSize != uint64_t(-1)); return getOpenFileImpl(FD, Filename, -1, MapSize, Offset, false, - IsVolatileSize); + /*IsVolatileSize*/ false); } ErrorOr<std::unique_ptr<MemoryBuffer>> MemoryBuffer::getSTDIN() { |