Skip to content

Commit 5378117

Browse files
[ADT] Remove any_isa (NFC) (#65636)
any_isa has been deprecated since: commit bb7940e Author: Sebastian Neubauer <[email protected]> Date: Tue Dec 20 13:28:30 2022 +0100
1 parent 4333146 commit 5378117

File tree

1 file changed

+0
-6
lines changed
  • llvm/include/llvm/ADT

1 file changed

+0
-6
lines changed

llvm/include/llvm/ADT/Any.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,6 @@ class LLVM_EXTERNAL_VISIBILITY Any {
135135
// See also https://github.com/llvm/llvm-project/issues/62270
136136
template <typename T> char Any::TypeId<T>::Id = 1;
137137

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-
144138
template <class T> T any_cast(const Any &Value) {
145139
assert(Value.isa<T>() && "Bad any cast!");
146140
return static_cast<T>(*any_cast<remove_cvref_t<T>>(&Value));

0 commit comments

Comments
 (0)