[llvm] [ADT] Make DenseMap/DenseSet more resilient agains OOM situations (PR #107251)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 4 08:01:20 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 2d7339ad24b41eb06c417f7067b9fbeb4fdb2e6b 84e90dba61c7dcae255b30aeb304eb9cdd00f549 --extensions h -- llvm/include/llvm/ADT/DenseMap.h llvm/include/llvm/ADT/DenseSet.h llvm/include/llvm/TextAPI/SymbolSet.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/ADT/DenseMap.h b/llvm/include/llvm/ADT/DenseMap.h
index 6c33de1cb7..688c4285ee 100644
--- a/llvm/include/llvm/ADT/DenseMap.h
+++ b/llvm/include/llvm/ADT/DenseMap.h
@@ -532,7 +532,7 @@ protected:
void initUnitialized([[maybe_unused]] unsigned NumBuckets) {
BucketT *B = getBuckets();
BucketT *E = getBucketsEnd();
- //assert(E - B == NumBuckets);
+ // assert(E - B == NumBuckets);
for (; B != E; ++B) {
B->setKeyConstructed(false);
B->setValueConstructed(false);
``````````
</details>
https://github.com/llvm/llvm-project/pull/107251
More information about the llvm-commits
mailing list