diff --git a/llvm/include/llvm/ADT/PointerUnion.h b/llvm/include/llvm/ADT/PointerUnion.h index cdbd76d7f505b..7d4ed02b62262 100644 --- a/llvm/include/llvm/ADT/PointerUnion.h +++ b/llvm/include/llvm/ADT/PointerUnion.h @@ -147,18 +147,12 @@ class PointerUnion // isa, cast and the llvm::dyn_cast /// Test if the Union currently holds the type matching T. - template - [[deprecated("Use isa instead")]] - inline bool is() const { - return isa(*this); - } + template inline bool is() const { return isa(*this); } /// Returns the value of the specified pointer type. /// /// If the specified pointer type is incorrect, assert. - template - [[deprecated("Use cast instead")]] - inline T get() const { + template inline T get() const { assert(isa(*this) && "Invalid accessor called"); return cast(*this); }