[llvm] 7472f6d - [ADT] Remove default argument from FoldingSetBase constructor (NFC) (#217523)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 10:18:39 PDT 2026
Author: Kazu Hirata
Date: 2026-08-20T10:18:34-07:00
New Revision: 7472f6d66500616ddd2f087eae608ce40d8866ae
URL: https://github.com/llvm/llvm-project/commit/7472f6d66500616ddd2f087eae608ce40d8866ae
DIFF: https://github.com/llvm/llvm-project/commit/7472f6d66500616ddd2f087eae608ce40d8866ae.diff
LOG: [ADT] Remove default argument from FoldingSetBase constructor (NFC) (#217523)
FoldingSetBase is never default-constructed directly; its subclasses and
helpers always pass Log2InitSize explicitly.
Assisted-by: Antigravity
Added:
Modified:
llvm/include/llvm/ADT/FoldingSet.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/FoldingSet.h b/llvm/include/llvm/ADT/FoldingSet.h
index 878d26fac9fee..ab4fa2712d4a5 100644
--- a/llvm/include/llvm/ADT/FoldingSet.h
+++ b/llvm/include/llvm/ADT/FoldingSet.h
@@ -307,7 +307,7 @@ class FoldingSetBase {
/// is greater than twice the number of buckets.
unsigned NumNodes;
- LLVM_ABI explicit FoldingSetBase(unsigned Log2InitSize = 6);
+ LLVM_ABI explicit FoldingSetBase(unsigned Log2InitSize);
LLVM_ABI FoldingSetBase(FoldingSetBase &&Arg);
LLVM_ABI FoldingSetBase &operator=(FoldingSetBase &&RHS);
LLVM_ABI ~FoldingSetBase();
More information about the llvm-commits
mailing list