[Support/MemoryBuffer] Remove the assertion that the file size did not shrink.
[oota-llvm.git] / lib / Support / MemoryBuffer.cpp
index 82cb7c0da7c12ac87768c452ea3e885afd49cc36..90945ab63aca20d71b00c2908f2468e454a38c29 100644 (file)
@@ -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;
     }