summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-05-21 17:09:22 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-05-21 17:09:22 +0000
commitfa160c7386561dd1f0d2868792aa981ed13774ec (patch)
tree6eb9f39e5c4138df017297a73dc2349d43e3b406 /llvm
parentf8c028c0b0d49f649ecea7a6fc33018f93bbea3c (diff)
downloadbcm5719-llvm-fa160c7386561dd1f0d2868792aa981ed13774ec.tar.gz
bcm5719-llvm-fa160c7386561dd1f0d2868792aa981ed13774ec.zip
Fix warning on builds without asserts.
llvm-svn: 237915
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/MC/MCParser/AsmParser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp
index da3fc72057e..85f463c2bd5 100644
--- a/llvm/lib/MC/MCParser/AsmParser.cpp
+++ b/llvm/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()));
OpenPOWER on IntegriCloud