mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-25 03:30:37 +00:00
Fix warning on builds without asserts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237915 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7d83b1223c
commit
921229e74e
@ -635,6 +635,7 @@ bool AsmParser::Run(bool NoInitialTextSection, bool NoFinalize) {
|
|||||||
const MCSection *Sec = getStreamer().getCurrentSection().first;
|
const MCSection *Sec = getStreamer().getCurrentSection().first;
|
||||||
bool InsertResult = getContext().addGenDwarfSection(Sec);
|
bool InsertResult = getContext().addGenDwarfSection(Sec);
|
||||||
assert(InsertResult && ".text section should not have debug info yet");
|
assert(InsertResult && ".text section should not have debug info yet");
|
||||||
|
(void)InsertResult;
|
||||||
Sec->setBeginSymbol(SectionStartSym);
|
Sec->setBeginSymbol(SectionStartSym);
|
||||||
getContext().setGenDwarfFileNumber(getStreamer().EmitDwarfFileDirective(
|
getContext().setGenDwarfFileNumber(getStreamer().EmitDwarfFileDirective(
|
||||||
0, StringRef(), getContext().getMainFileName()));
|
0, StringRef(), getContext().getMainFileName()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user