mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-05 03:36:43 +00:00
[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. llvm-svn: 208143
This commit is contained in:
parent
01b4c1bca8
commit
e529889ad4
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user