summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-08-31 02:14:26 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-08-31 02:14:26 +0000
commitcd4b8a2560d760db230e9779d8597345198dd897 (patch)
tree767f07ae95732aca07f493db8a7447309f84dc2c /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parentee03eadc3f15b63e20e80ad65e6cef157915094f (diff)
downloadbcm5719-llvm-cd4b8a2560d760db230e9779d8597345198dd897.tar.gz
bcm5719-llvm-cd4b8a2560d760db230e9779d8597345198dd897.zip
Simplify expression using container's front() rather than begin()->
llvm-svn: 216833
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 7f8d152a691..860c7ca9245 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/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<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,
OpenPOWER on IntegriCloud