[llvm] Fix assert for [CGData] Outlined Hash Tree #89792 (PR #98383)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 10 13:49:44 PDT 2024


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 dad7442aff5c85ff9141b0d0f231bcd731cbadc6 e23f47571229b631b84b3aeae3e3cacfd42e1431 --extensions cpp -- llvm/lib/CodeGenData/OutlinedHashTreeRecord.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGenData/OutlinedHashTreeRecord.cpp b/llvm/lib/CodeGenData/OutlinedHashTreeRecord.cpp
index 473d69e011..72911f5da3 100644
--- a/llvm/lib/CodeGenData/OutlinedHashTreeRecord.cpp
+++ b/llvm/lib/CodeGenData/OutlinedHashTreeRecord.cpp
@@ -120,7 +120,7 @@ void OutlinedHashTreeRecord::convertToStableData(
         size_t Index = NodeIdMap.size();
         NodeIdMap[Current] = Index;
         assert(Index + 1 == NodeIdMap.size() &&
-                       "Expected size of NodeMap to increment by 1");
+               "Expected size of NodeMap to increment by 1");
       },
       /*EdgeCallbackFn=*/nullptr, /*SortedWork=*/true);
 

``````````

</details>


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


More information about the llvm-commits mailing list