Simplify expression using container's front() rather than begin()->
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfDebug.cpp
index 7f8d152a691a690137bc084deada1ccf31b94d93..860c7ca9245a0751bc666827e382e56b63eeda92 100644 (file)
@@ -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,