From: Duncan P. N. Exon Smith Date: Wed, 27 May 2015 23:02:36 +0000 (+0000) Subject: AsmPrinter: Avoid a warning in NDEBUG, NFC X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2c46a37b03c865aa7a21118efb0b2e6f2d771eaf;p=oota-llvm.git AsmPrinter: Avoid a warning in NDEBUG, NFC Should fix the -Werror release build: http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/11113 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238375 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfFile.cpp b/lib/CodeGen/AsmPrinter/DwarfFile.cpp index b1668658815..cafaabba5a3 100644 --- a/lib/CodeGen/AsmPrinter/DwarfFile.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfFile.cpp @@ -107,6 +107,7 @@ unsigned DwarfFile::computeSizeAndOffset(DIE &Die, unsigned Offset) { // Size the DIE children if any. if (!Children.empty()) { + (void)Abbrev; assert(Abbrev.hasChildren() && "Children flag not set"); for (auto &Child : Children)