diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-05-06 23:30:56 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-05-06 23:30:56 +0000 |
commit | 6d46f2d3941474d5db59c0dc4e85779ca1af3376 (patch) | |
tree | 1083d4cedd21dfb68bcb5f292394206f90d2ce52 /lib/Support | |
parent | 9e9ec9b69ce132b72eb557e914f7f05241fb192f (diff) | |
download | llvm-6d46f2d3941474d5db59c0dc4e85779ca1af3376.tar.gz llvm-6d46f2d3941474d5db59c0dc4e85779ca1af3376.tar.bz2 llvm-6d46f2d3941474d5db59c0dc4e85779ca1af3376.tar.xz |
[Support/MemoryBuffer] Remove the assertion that the file size did not shrink.
This can happen in practice with the user changing files and we can recover from it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208143 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/MemoryBuffer.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Support/MemoryBuffer.cpp b/lib/Support/MemoryBuffer.cpp index 82cb7c0da7..90945ab63a 100644 --- a/lib/Support/MemoryBuffer.cpp +++ b/lib/Support/MemoryBuffer.cpp @@ -426,9 +426,6 @@ static error_code getOpenFileImpl(int FD, const char *Filename, return error_code(errno, posix_category()); } if (NumRead == 0) { - assert(IsVolatileSize && - "We got inaccurate FileSize value or fstat reported an invalid " - "file size."); memset(BufPtr, 0, BytesLeft); // zero-initialize rest of the buffer. break; } |