This is an archive of the discontinued LLVM Phabricator instance.

[clang][Interp] Fix double-printing in InterpFrame::describe()
ClosedPublic

Authored by tbaeder on Jan 16 2023, 2:16 AM.

Details

Summary

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()).

Diff Detail

Event Timeline

tbaeder created this revision.Jan 16 2023, 2:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 16 2023, 2:16 AM
tbaeder requested review of this revision.Jan 16 2023, 2:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 16 2023, 2:16 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
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
This revision was automatically updated to reflect the committed changes.