[llvm] r229736 - Fix -DNDEBUG -Werror build after r229733
Duncan P. N. Exon Smith
dexonsmith at apple.com
Wed Feb 18 11:56:50 PST 2015
Author: dexonsmith
Date: Wed Feb 18 13:56:50 2015
New Revision: 229736
URL: http://llvm.org/viewvc/llvm-project?rev=229736&view=rev
Log:
Fix -DNDEBUG -Werror build after r229733
Modified:
llvm/trunk/lib/IR/DebugInfo.cpp
Modified: llvm/trunk/lib/IR/DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DebugInfo.cpp?rev=229736&r1=229735&r2=229736&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DebugInfo.cpp (original)
+++ llvm/trunk/lib/IR/DebugInfo.cpp Wed Feb 18 13:56:50 2015
@@ -428,6 +428,7 @@ static bool fieldIsScopeRef(const MDNode
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 Metada
return !S->getString().empty();
return isa<MDNode>(MD);
}
+#endif
bool DIType::Verify() const {
if (!isType())
More information about the llvm-commits
mailing list