[PATCH] D66224: MemoryBuffer: Add a missing error-check to getOpenFileImpl

Pavel Labath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 14 08:40:18 PDT 2019


labath added a comment.

PS: I discovered this when accidentally trying to read a directory, but it is not possible to write a portable test for that, as some BSDs will actually allow you to do that, so the test is written via a write-only file handle instead.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66224/new/

https://reviews.llvm.org/D66224





More information about the llvm-commits mailing list