diff options
author | Kazu Hirata <kazu@google.com> | 2025-07-10 12:26:42 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2025-07-10 12:26:42 -0700 |
commit | 682d6c494222452ca236dc993bd5321eb7fc80f1 (patch) | |
tree | 5df5e9169aec3ddd999dd6bda1bc3fc894ddb535 /llvm/unittests/ADT/DenseMapTest.cpp | |
parent | 922fca5cc9671b9bb4ed160d0937509e97f4fafb (diff) | |
download | llvm-682d6c494222452ca236dc993bd5321eb7fc80f1.zip llvm-682d6c494222452ca236dc993bd5321eb7fc80f1.tar.gz llvm-682d6c494222452ca236dc993bd5321eb7fc80f1.tar.bz2 |
[ADT] Fix a warning
This patch fixes:
llvm/unittests/ADT/DenseMapTest.cpp:94:25: error: unused function
'getTestValue' [-Werror,-Wunused-function]
Diffstat (limited to 'llvm/unittests/ADT/DenseMapTest.cpp')
-rw-r--r-- | llvm/unittests/ADT/DenseMapTest.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/unittests/ADT/DenseMapTest.cpp b/llvm/unittests/ADT/DenseMapTest.cpp index e3e8e8c..bdfbc85 100644 --- a/llvm/unittests/ADT/DenseMapTest.cpp +++ b/llvm/unittests/ADT/DenseMapTest.cpp @@ -91,10 +91,6 @@ std::optional<uint32_t> getTestKey(int i, std::optional<uint32_t> *) { return i; } -std::optional<uint32_t> getTestValue(int i, std::optional<uint32_t> *) { - return 42 + i; -} - // Test fixture, with helper functions implemented by forwarding to global // function overloads selected by component types of the type parameter. This // allows all of the map implementations to be tested with shared |