From e4450146fa3bacdb53bb246b419adaaea386a346 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" <dexonsmith@apple.com> Date: Wed, 18 Feb 2015 19:56:50 +0000 Subject: [PATCH] Fix -DNDEBUG -Werror build after r229733 llvm-svn: 229736 --- llvm/lib/IR/DebugInfo.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index c39c11988a28..92d7e4590a96 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -428,6 +428,7 @@ static bool fieldIsScopeRef(const MDNode *DbgNode, unsigned Elt) { 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 @@ static bool isDescriptorRef(const Metadata *MD) { return !S->getString().empty(); return isa<MDNode>(MD); } +#endif bool DIType::Verify() const { if (!isType())