summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-18 19:56:50 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-18 19:56:50 +0000
commite4450146fa3bacdb53bb246b419adaaea386a346 (patch)
treead33fa24e9a8a5919b1311547a618aaca57ca8ac /llvm/lib/IR
parent4dd0304e342c8c53e7b416b90964bf166ea9acf0 (diff)
downloadbcm5719-llvm-e4450146fa3bacdb53bb246b419adaaea386a346.tar.gz
bcm5719-llvm-e4450146fa3bacdb53bb246b419adaaea386a346.zip
Fix -DNDEBUG -Werror build after r229733
llvm-svn: 229736
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r--llvm/lib/IR/DebugInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index c39c11988a2..92d7e4590a9 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())
OpenPOWER on IntegriCloud