From 921229e74ef45baf753d5eeda756a694112cee0e Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 21 May 2015 17:09:22 +0000 Subject: [PATCH] Fix warning on builds without asserts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237915 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/MCParser/AsmParser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index da3fc72057e..85f463c2bd5 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -635,6 +635,7 @@ bool AsmParser::Run(bool NoInitialTextSection, bool NoFinalize) { 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())); -- 2.34.1