AsmPrinter: Avoid a warning in NDEBUG, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 27 May 2015 23:02:36 +0000 (23:02 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 27 May 2015 23:02:36 +0000 (23:02 +0000)
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

lib/CodeGen/AsmPrinter/DwarfFile.cpp

index b1668658815e876962b6aa833ae1eede48964dd0..cafaabba5a365ccd4683f419e3bb5c682c6950d7 100644 (file)
@@ -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)