We add the pointer we want to print itself to the Levels array anyway, but then we print it once via printDesc(P.getDeclDesc()) and in the loop again via printDesc(It.getFieldDesc()).
Details
Details
Diff Detail
Diff Detail
Event Timeline
tbaeder retitled this revision from [clang][Interp] Fix double-printing InterpFrame::describe() to [clang][Interp] Fix double-printing in InterpFrame::describe().Jan 16 2023, 6:20 AM
This revision is now accepted and ready to land.Jan 18 2023, 10:15 AM
This revision was landed with ongoing or failed builds.Mar 31 2023, 6:26 AM
Closed by commit rGd472c55fa28a: [clang][Interp] Fix double-printing InterpFrame::describe() (authored by tbaeder). · Explain Why
This revision was automatically updated to reflect the committed changes.