Skip to content

Commit aec8e1b

Browse files
Address comments.
1 parent b8b0157 commit aec8e1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/ADT/PointerUnion.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class PointerUnion
148148

149149
/// Test if the Union currently holds the type matching T.
150150
template <typename T>
151-
LLVM_DEPRECATED("Use isa instead", "isa")
151+
[[deprecated("Use isa instead")]]
152152
inline bool is() const {
153153
return isa<T>(*this);
154154
}
@@ -157,7 +157,7 @@ class PointerUnion
157157
///
158158
/// If the specified pointer type is incorrect, assert.
159159
template <typename T>
160-
LLVM_DEPRECATED("Use cast instead", "cast")
160+
[[deprecated("Use cast instead")]]
161161
inline T get() const {
162162
assert(isa<T>(*this) && "Invalid accessor called");
163163
return cast<T>(*this);

0 commit comments

Comments
 (0)