We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b0c110 + f7fa25f commit 624aba8Copy full SHA for 624aba8
llvm/include/llvm/ADT/PointerUnion.h
@@ -147,18 +147,12 @@ class PointerUnion
147
// isa<T>, cast<T> and the llvm::dyn_cast<T>
148
149
/// 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
- }
+ template <typename T> inline bool is() const { return isa<T>(*this); }
155
156
/// Returns the value of the specified pointer type.
157
///
158
/// If the specified pointer type is incorrect, assert.
159
160
- [[deprecated("Use cast instead")]]
161
- inline T get() const {
+ template <typename T> inline T get() const {
162
assert(isa<T>(*this) && "Invalid accessor called");
163
return cast<T>(*this);
164
}
0 commit comments