From: Duncan P. N. Exon Smith Date: Mon, 2 Feb 2015 20:20:56 +0000 (+0000) Subject: Fix the -Werror build, NFC X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=48da191fb3a78e8335e54b9edc35fdbfdf545621;p=oota-llvm.git Fix the -Werror build, NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227849 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/IR/DebugInfoMetadata.cpp b/lib/IR/DebugInfoMetadata.cpp index 21a95f9f9fc..467d21ad36a 100644 --- a/lib/IR/DebugInfoMetadata.cpp +++ b/lib/IR/DebugInfoMetadata.cpp @@ -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,