File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -147,18 +147,12 @@ class PointerUnion
147
147
// isa<T>, cast<T> and the llvm::dyn_cast<T>
148
148
149
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
- }
150
+ template <typename T> inline bool is () const { return isa<T>(*this ); }
155
151
156
152
// / Returns the value of the specified pointer type.
157
153
// /
158
154
// / 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 {
162
156
assert (isa<T>(*this ) && " Invalid accessor called" );
163
157
return cast<T>(*this );
164
158
}
You can’t perform that action at this time.
0 commit comments