[PATCH] D99110: [Coverage] Load records immediately

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 25 08:12:39 PDT 2021


RKSimon added inline comments.


================
Comment at: llvm/lib/ProfileData/Coverage/CoverageMapping.cpp:332
+    auto CovMappingBufOrErr = MemoryBuffer::getFileOrSTDIN(
+        File.value(), /*FileSize=*/-1, /*RequiresNullTerminator=*/false);
     if (std::error_code EC = CovMappingBufOrErr.getError())
----------------
@tunz There is a integer/bool mismatch warning for the "FileSize" argument - in fact the signature for the method is:

```
ErrorOr<std::unique_ptr<MemoryBuffer>>
MemoryBuffer::getFileOrSTDIN(const Twine &Filename, bool IsText, bool RequiresNullTerminator);
```

so "FileSize" makes no sense - please can you take a look?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D99110



More information about the llvm-commits mailing list