From 48da191fb3a78e8335e54b9edc35fdbfdf545621 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Mon, 2 Feb 2015 20:20:56 +0000 Subject: [PATCH] Fix the -Werror build, NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227849 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/DebugInfoMetadata.cpp | 2 ++ 1 file changed, 2 insertions(+) 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,