diff --git a/include/llvm/IR/DebugInfo.h b/include/llvm/IR/DebugInfo.h index 2b1a011d525..e478f7c1b55 100644 --- a/include/llvm/IR/DebugInfo.h +++ b/include/llvm/IR/DebugInfo.h @@ -355,12 +355,6 @@ public: return *get(); } - operator DITypeRef() const { - assert(isType() && - "constructing DITypeRef from an MDNode that is not a type"); - return DITypeRef(&*getRef()); - } - bool Verify() const; DIScopeRef getContext() const { return DIScopeRef::get(get()->getScope()); }