diff options
-rw-r--r-- | llvm/tools/dsymutil/DwarfLinker.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/dsymutil/DwarfLinker.cpp b/llvm/tools/dsymutil/DwarfLinker.cpp index 47d08504786..d839f07657b 100644 --- a/llvm/tools/dsymutil/DwarfLinker.cpp +++ b/llvm/tools/dsymutil/DwarfLinker.cpp @@ -2884,6 +2884,7 @@ 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()); Seq.back().Address = StopAddress; Seq.back().EndSequence = 1; |