Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions llvm/include/llvm/ADT/Any.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,6 @@ class LLVM_EXTERNAL_VISIBILITY Any {
// See also https://github.com/llvm/llvm-project/issues/62270
template <typename T> char Any::TypeId<T>::Id = 1;

template <typename T>
LLVM_DEPRECATED("Use any_cast(Any*) != nullptr instead", "any_cast")
bool any_isa(const Any &Value) {
return Value.isa<T>();
}

template <class T> T any_cast(const Any &Value) {
assert(Value.isa<T>() && "Bad any cast!");
return static_cast<T>(*any_cast<remove_cvref_t<T>>(&Value));
Expand Down