[llvm] r216833 - Simplify expression using container's front() rather than begin()->

David Blaikie dblaikie at gmail.com
Sat Aug 30 19:14:26 PDT 2014


Author: dblaikie
Date: Sat Aug 30 21:14:26 2014
New Revision: 216833

URL: http://llvm.org/viewvc/llvm-project?rev=216833&view=rev
Log:
Simplify expression using container's front() rather than begin()->

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=216833&r1=216832&r2=216833&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Sat Aug 30 21:14:26 2014
@@ -346,9 +346,7 @@ bool DwarfDebug::isLexicalScopeDIENull(L
 
   // 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,





More information about the llvm-commits mailing list