From: Daniel Sanders Date: Tue, 15 Nov 2016 10:13:09 +0000 (+0000) Subject: Fix -Wunused introduced in r286945 for release builds. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3e1125a0a11a4ef67708dc036399e6b56a240b4;p=platform%2Fupstream%2Fllvm.git Fix -Wunused introduced in r286945 for release builds. llvm-svn: 286946 --- diff --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp index c0a329c..dbb947a 100644 --- a/llvm/utils/TableGen/AsmMatcherEmitter.cpp +++ b/llvm/utils/TableGen/AsmMatcherEmitter.cpp @@ -1418,8 +1418,10 @@ void AsmMatcherInfo::buildInfo() { &SubtargetFeaturePairs = SubtargetFeatureInfo::getAll(Records); SubtargetFeatures.insert(SubtargetFeaturePairs.begin(), SubtargetFeaturePairs.end()); +#ifndef NDEBUG for (const auto &Pair : SubtargetFeatures) DEBUG(Pair.second.dump()); +#endif // NDEBUG assert(SubtargetFeatures.size() <= 64 && "Too many subtarget features!"); bool HasMnemonicFirst = AsmParser->getValueAsBit("HasMnemonicFirst");