[llvm] r227849 - Fix the -Werror build, NFC

Duncan P. N. Exon Smith dexonsmith at apple.com
Mon Feb 2 12:20:57 PST 2015


Author: dexonsmith
Date: Mon Feb  2 14:20:56 2015
New Revision: 227849

URL: http://llvm.org/viewvc/llvm-project?rev=227849&view=rev
Log:
Fix the -Werror build, NFC

Modified:
    llvm/trunk/lib/IR/DebugInfoMetadata.cpp

Modified: llvm/trunk/lib/IR/DebugInfoMetadata.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DebugInfoMetadata.cpp?rev=227849&r1=227848&r2=227849&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DebugInfoMetadata.cpp (original)
+++ llvm/trunk/lib/IR/DebugInfoMetadata.cpp Mon Feb  2 14:20:56 2015
@@ -77,9 +77,11 @@ static StringRef getString(const MDStrin
   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,





More information about the llvm-commits mailing list