We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ca41da commit 43ff1c3Copy full SHA for 43ff1c3
llvm/include/llvm/ADT/Any.h
@@ -135,12 +135,6 @@ class LLVM_EXTERNAL_VISIBILITY Any {
135
// See also https://github.com/llvm/llvm-project/issues/62270
136
template <typename T> char Any::TypeId<T>::Id = 1;
137
138
-template <typename T>
139
-LLVM_DEPRECATED("Use any_cast(Any*) != nullptr instead", "any_cast")
140
-bool any_isa(const Any &Value) {
141
- return Value.isa<T>();
142
-}
143
-
144
template <class T> T any_cast(const Any &Value) {
145
assert(Value.isa<T>() && "Bad any cast!");
146
return static_cast<T>(*any_cast<remove_cvref_t<T>>(&Value));
0 commit comments