[llvm] d767d1d - [ADT] Use unnamed argument for unused arg in StringMapEntryStorage.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 14 07:55:38 PDT 2021
Author: Florian Hahn
Date: 2021-06-14T15:54:57+01:00
New Revision: d767d1dd2c7870bf7e1c4c301a59b682370b9a2a
URL: https://github.com/llvm/llvm-project/commit/d767d1dd2c7870bf7e1c4c301a59b682370b9a2a
DIFF: https://github.com/llvm/llvm-project/commit/d767d1dd2c7870bf7e1c4c301a59b682370b9a2a.diff
LOG: [ADT] Use unnamed argument for unused arg in StringMapEntryStorage.
This silences an 'unsused argument' warning.
Similar to c2006f857d80f54b90ed7d911d3e7acf4f46001b.
Added:
Modified:
llvm/include/llvm/ADT/StringMapEntry.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/StringMapEntry.h b/llvm/include/llvm/ADT/StringMapEntry.h
index 079143d50512..8bfad5540230 100644
--- a/llvm/include/llvm/ADT/StringMapEntry.h
+++ b/llvm/include/llvm/ADT/StringMapEntry.h
@@ -84,7 +84,7 @@ class StringMapEntryStorage : public StringMapEntryBase {
template <> class StringMapEntryStorage<NoneType> : public StringMapEntryBase {
public:
- explicit StringMapEntryStorage(size_t keyLength, NoneType none = None)
+ explicit StringMapEntryStorage(size_t keyLength, NoneType = None)
: StringMapEntryBase(keyLength) {}
StringMapEntryStorage(StringMapEntryStorage &entry) = delete;
More information about the llvm-commits
mailing list