[llvm] 5041129 - [ADT] Remove deprecated Any::hasValue
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 19 13:45:33 PST 2022
Author: Kazu Hirata
Date: 2022-11-19T13:45:27-08:00
New Revision: 50411290ca63277cd0c50942df05c3fc4dd228c6
URL: https://github.com/llvm/llvm-project/commit/50411290ca63277cd0c50942df05c3fc4dd228c6
DIFF: https://github.com/llvm/llvm-project/commit/50411290ca63277cd0c50942df05c3fc4dd228c6.diff
LOG: [ADT] Remove deprecated Any::hasValue
Note that I deprecated Any::hasValue on August 20, 2022 in commit
abb6271d809b37d3c3318894d697d5820032bec8.
Added:
Modified:
llvm/include/llvm/ADT/Any.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/Any.h b/llvm/include/llvm/ADT/Any.h
index 71473594c001..0e2f587c7cba 100644
--- a/llvm/include/llvm/ADT/Any.h
+++ b/llvm/include/llvm/ADT/Any.h
@@ -102,8 +102,6 @@ class LLVM_EXTERNAL_VISIBILITY Any {
return *this;
}
- LLVM_DEPRECATED("Use has_value instead.", "has_value")
- bool hasValue() const { return !!Storage; }
bool has_value() const { return !!Storage; }
void reset() { Storage.reset(); }
More information about the llvm-commits
mailing list