llvm.org GIT mirror llvm / 99b2ac6
Recommit r244470+ r244471 together, the bot failed between them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244476 91177308-0d34-0410-b5e6-96231b3b80d8 Yaron Keren 4 years ago
1 changed file(s) with 5 addition(s) and 7 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().
28882886 auto NextLine = Seq.back();
2887 NextLine.Address = StopAddress;
2888 NextLine.EndSequence = 1;
2889 NextLine.PrologueEnd = 0;
2890 NextLine.BasicBlock = 0;
2891 NextLine.EpilogueBegin = 0;
28892892 Seq.push_back(NextLine);
2890 Seq.back().Address = StopAddress;
2891 Seq.back().EndSequence = 1;
2892 Seq.back().PrologueEnd = 0;
2893 Seq.back().BasicBlock = 0;
2894 Seq.back().EpilogueBegin = 0;
28952893 insertLineSequence(Seq, NewRows);
28962894 }
28972895