Fix -DNDEBUG -Werror build after r229733
llvm-svn: 229736
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index c39c119..92d7e45 100644
--- a/llvm/lib/IR/DebugInfo.cpp
+++ b/llvm/lib/IR/DebugInfo.cpp
@@ -428,6 +428,7 @@
return isScopeRef(dyn_cast_or_null<Metadata>(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 @@
return !S->getString().empty();
return isa<MDNode>(MD);
}
+#endif
bool DIType::Verify() const {
if (!isType())