[llvm] [llvm-profdata] Emit error when counter value is greater than 2^56. (PR #69513)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 20 11:44:02 PDT 2023


github-actions[bot] wrote:


<!--LLVM CODE FORMAT COMMENT: {clang-format}-->

:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 6c6749ce72fa3225dd3514a4d78187aa706fce7c fb2339c8764bcf515fbd749d50b4992381a65016 -- llvm/include/llvm/ProfileData/InstrProfReader.h llvm/lib/ProfileData/InstrProfReader.cpp llvm/tools/llvm-profdata/llvm-profdata.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp
index 286d7a877f67..943cc4ccd53c 100644
--- a/llvm/lib/ProfileData/InstrProfReader.cpp
+++ b/llvm/lib/ProfileData/InstrProfReader.cpp
@@ -165,10 +165,10 @@ static Error printBinaryIdsInternal(raw_ostream &OS,
   return Error::success();
 }
 
-Expected<std::unique_ptr<InstrProfReader>> InstrProfReader::create(
-    const Twine &Path, vfs::FileSystem &FS,
-    const InstrProfCorrelator *Correlator,
-    std::optional<std::function<void(Error)>> MaybeWarnFn) {
+Expected<std::unique_ptr<InstrProfReader>>
+InstrProfReader::create(const Twine &Path, vfs::FileSystem &FS,
+                        const InstrProfCorrelator *Correlator,
+                        std::optional<std::function<void(Error)>> MaybeWarnFn) {
   // Set up the buffer to read.
   auto BufferOrError = setupMemoryBuffer(Path, FS);
   if (Error E = BufferOrError.takeError())

``````````

</details>


https://github.com/llvm/llvm-project/pull/69513


More information about the llvm-commits mailing list