mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-04 09:37:20 +00:00
Simplify expression using container's front() rather than begin()->
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216833 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
07f352637c
commit
b8ee7c2bf6
@ -346,9 +346,7 @@ bool DwarfDebug::isLexicalScopeDIENull(LexicalScope *Scope) {
|
||||
|
||||
// We don't create a DIE if we have a single Range and the end label
|
||||
// is null.
|
||||
SmallVectorImpl<InsnRange>::const_iterator RI = Ranges.begin();
|
||||
MCSymbol *End = getLabelAfterInsn(RI->second);
|
||||
return !End;
|
||||
return !getLabelAfterInsn(Ranges.front().second);
|
||||
}
|
||||
|
||||
static void addSectionLabel(AsmPrinter &Asm, DwarfUnit &U, DIE &D,
|
||||
|
Loading…
x
Reference in New Issue
Block a user