[PATCH] D99349: Fix: Reordering parameters in getFile and getFileOrSTDIN
Abhina Sree via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 25 08:56:11 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf5349922c06f: Fix: Reordering parameters in getFile and getFileOrSTDIN (authored by abhina.sreeskantharajan).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99349/new/
https://reviews.llvm.org/D99349
Files:
llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
Index: llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
===================================================================
--- llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
+++ llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
@@ -329,7 +329,7 @@
for (const auto &File : llvm::enumerate(ObjectFilenames)) {
auto CovMappingBufOrErr = MemoryBuffer::getFileOrSTDIN(
- File.value(), /*FileSize=*/-1, /*RequiresNullTerminator=*/false);
+ File.value(), /*IsText=*/false, /*RequiresNullTerminator=*/false);
if (std::error_code EC = CovMappingBufOrErr.getError())
return errorCodeToError(EC);
StringRef Arch = Arches.empty() ? StringRef() : Arches[File.index()];
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99349.333320.patch
Type: text/x-patch
Size: 702 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210325/aef9c8c8/attachment.bin>
More information about the llvm-commits
mailing list