[llvm] r237915 - Fix warning on builds without asserts.

Rafael Espindola rafael.espindola at gmail.com
Thu May 21 10:09:22 PDT 2015


Author: rafael
Date: Thu May 21 12:09:22 2015
New Revision: 237915

URL: http://llvm.org/viewvc/llvm-project?rev=237915&view=rev
Log:
Fix warning on builds without asserts.

Modified:
    llvm/trunk/lib/MC/MCParser/AsmParser.cpp

Modified: llvm/trunk/lib/MC/MCParser/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/AsmParser.cpp?rev=237915&r1=237914&r2=237915&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Thu May 21 12:09:22 2015
@@ -635,6 +635,7 @@ bool AsmParser::Run(bool NoInitialTextSe
     const MCSection *Sec = getStreamer().getCurrentSection().first;
     bool InsertResult = getContext().addGenDwarfSection(Sec);
     assert(InsertResult && ".text section should not have debug info yet");
+    (void)InsertResult;
     Sec->setBeginSymbol(SectionStartSym);
     getContext().setGenDwarfFileNumber(getStreamer().EmitDwarfFileDirective(
         0, StringRef(), getContext().getMainFileName()));





More information about the llvm-commits mailing list