summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-08-10 16:15:51 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-08-10 16:15:51 +0000
commite3c070673613c4efe1b628319fa4a9956aae0278 (patch)
treeced9b135cfa2da089144c03b57ebcc124af0f283 /llvm
parentb3a74c659b8946917a7b658abb1ae8b0d00ba70f (diff)
downloadbcm5719-llvm-e3c070673613c4efe1b628319fa4a9956aae0278.tar.gz
bcm5719-llvm-e3c070673613c4efe1b628319fa4a9956aae0278.zip
Modify r244405 to clearer code, per David Blaikie suggestion.
llvm-svn: 244455
Diffstat (limited to 'llvm')
-rw-r--r--llvm/tools/dsymutil/DwarfLinker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/dsymutil/DwarfLinker.cpp b/llvm/tools/dsymutil/DwarfLinker.cpp
index d839f07657b..ae2f6d3b36f 100644
--- a/llvm/tools/dsymutil/DwarfLinker.cpp
+++ b/llvm/tools/dsymutil/DwarfLinker.cpp
@@ -2884,8 +2884,8 @@ void DwarfLinker::patchLineTableForUnit(CompileUnit &Unit,
if (StopAddress != -1ULL && !Seq.empty()) {
// Insert end sequence row with the computed end address, but
// the same line as the previous one.
- Seq.reserve(Seq.size() + 1);
- Seq.emplace_back(Seq.back());
+ auto NextLine = Seq.back();
+ Seq.emplace_back(NextLine);
Seq.back().Address = StopAddress;
Seq.back().EndSequence = 1;
Seq.back().PrologueEnd = 0;
OpenPOWER on IntegriCloud