[llvm] [ADT] Deprecate PointerUnion::{is,get} (NFC) (PR #122623)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 12 12:04:39 PST 2025
================
@@ -147,12 +147,18 @@ class PointerUnion
// isa<T>, cast<T> and the llvm::dyn_cast<T>
/// Test if the Union currently holds the type matching T.
- template <typename T> inline bool is() const { return isa<T>(*this); }
+ template <typename T>
+ LLVM_DEPRECATED("Use isa instead", "isa")
----------------
kazutakahirata wrote:
OK. I've switched to `[[deprecated(MSG)]]` for this PR. Thanks!
https://github.com/llvm/llvm-project/pull/122623
More information about the llvm-commits
mailing list