From: David Blaikie Date: Sun, 31 Aug 2014 02:14:26 +0000 (+0000) Subject: Simplify expression using container's front() rather than begin()-> X-Git-Tag: android-x86-7.1-r4~57983 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b8ee7c2bf6e3ab819fb3bd4f066172e7a45cc8d1;p=android-x86%2Fexternal-llvm.git 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 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 7f8d152a691..860c7ca9245 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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::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,