Skip to content

Commit f7fa25f

Browse files
committed
[stable/20250402] Revert "[ADT] Deprecate PointerUnion::{is,get} (NFC) (llvm#122623)"
This reverts commit abba01a. We will address these deprecations later once all the other failures are dealt with and Swift's release/6.2 starts converging. Right now they're just getting in the way.
1 parent 6b0c110 commit f7fa25f

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

llvm/include/llvm/ADT/PointerUnion.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,18 +147,12 @@ class PointerUnion
147147
// isa<T>, cast<T> and the llvm::dyn_cast<T>
148148

149149
/// Test if the Union currently holds the type matching T.
150-
template <typename T>
151-
[[deprecated("Use isa instead")]]
152-
inline bool is() const {
153-
return isa<T>(*this);
154-
}
150+
template <typename T> inline bool is() const { return isa<T>(*this); }
155151

156152
/// Returns the value of the specified pointer type.
157153
///
158154
/// If the specified pointer type is incorrect, assert.
159-
template <typename T>
160-
[[deprecated("Use cast instead")]]
161-
inline T get() const {
155+
template <typename T> inline T get() const {
162156
assert(isa<T>(*this) && "Invalid accessor called");
163157
return cast<T>(*this);
164158
}

0 commit comments

Comments
 (0)