Fix the -Werror build, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 2 Feb 2015 20:20:56 +0000 (20:20 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 2 Feb 2015 20:20:56 +0000 (20:20 +0000)
llvm-svn: 227849

llvm/lib/IR/DebugInfoMetadata.cpp

index 21a95f9..467d21a 100644 (file)
@@ -77,9 +77,11 @@ static StringRef getString(const MDString *S) {
   return StringRef();
 }
 
+#ifndef NDEBUG
 static bool isCanonical(const MDString *S) {
   return !S || !S->getString().empty();
 }
+#endif
 
 GenericDebugNode *GenericDebugNode::getImpl(LLVMContext &Context, unsigned Tag,
                                             MDString *Header,