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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227849 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/DebugInfoMetadata.cpp

index 21a95f9f9fc6ba997633c9e6a12b2971b8e7d53b..467d21ad36ade826c92a53f3b0799a8266061f98 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,