llvm.org GIT mirror llvm / 3758d95
Fully apply David Blaikie suggestion and add comment explaining why. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244461 91177308-0d34-0410-b5e6-96231b3b80d8 Yaron Keren 4 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
28832883 if (StopAddress != -1ULL && !Seq.empty()) {
28842884 // Insert end sequence row with the computed end address, but
28852885 // the same line as the previous one.
2886 // Do not collapse the next two statements as the push_back operation
2887 // may reallocate the vector and invalidate the iterator Seq.back().
28862888 auto NextLine = Seq.back();
2887 Seq.emplace_back(NextLine);
2889 Seq.push_back(NextLine);
28882890 Seq.back().Address = StopAddress;
28892891 Seq.back().EndSequence = 1;
28902892 Seq.back().PrologueEnd = 0;