diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp index c39c11988a2..92d7e4590a9 100644 --- a/lib/IR/DebugInfo.cpp +++ b/lib/IR/DebugInfo.cpp @@ -428,6 +428,7 @@ static bool fieldIsScopeRef(const MDNode *DbgNode, unsigned Elt) { return isScopeRef(dyn_cast_or_null(getField(DbgNode, Elt))); } +#ifndef NDEBUG /// \brief Check if a value can be a DescriptorRef. static bool isDescriptorRef(const Metadata *MD) { if (!MD) @@ -436,6 +437,7 @@ static bool isDescriptorRef(const Metadata *MD) { return !S->getString().empty(); return isa(MD); } +#endif bool DIType::Verify() const { if (!isType())