We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8b0157 commit aec8e1bCopy full SHA for aec8e1b
llvm/include/llvm/ADT/PointerUnion.h
@@ -148,7 +148,7 @@ class PointerUnion
148
149
/// Test if the Union currently holds the type matching T.
150
template <typename T>
151
- LLVM_DEPRECATED("Use isa instead", "isa")
+ [[deprecated("Use isa instead")]]
152
inline bool is() const {
153
return isa<T>(*this);
154
}
@@ -157,7 +157,7 @@ class PointerUnion
157
///
158
/// If the specified pointer type is incorrect, assert.
159
160
- LLVM_DEPRECATED("Use cast instead", "cast")
+ [[deprecated("Use cast instead")]]
161
inline T get() const {
162
assert(isa<T>(*this) && "Invalid accessor called");
163
return cast<T>(*this);
0 commit comments