From 6d46f2d3941474d5db59c0dc4e85779ca1af3376 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 6 May 2014 23:30:56 +0000 Subject: [PATCH] [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 --- lib/Support/MemoryBuffer.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/Support/MemoryBuffer.cpp b/lib/Support/MemoryBuffer.cpp index 82cb7c0da7c..90945ab63ac 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; } -- 2.34.1