llvm.org GIT mirror llvm / 40c54fb
Revert r244470 and 244471 while looking into it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244472 91177308-0d34-0410-b5e6-96231b3b80d8 Yaron Keren 4 years ago
1 changed file(s) with 7 addition(s) and 5 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 NextLine.Address = StopAddress;
2888 NextLine.EndSequence = 1;
2889 NextLine.PrologueEnd = 0;
2890 NextLine.BasicBlock = 0;
2891 NextLine.EpilogueBegin = 0;
28922889 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;
28932895 insertLineSequence(Seq, NewRows);
28942896 }
28952897