Print positions in --debugger, instead of pointers

This commit is contained in:
Rebecca Turner 2024-02-02 17:38:46 -08:00
parent 081dc5daa1
commit 7d7483cafc
No known key found for this signature in database

View file

@ -232,7 +232,7 @@ static std::ostream & showDebugTrace(std::ostream & out, const PosTable & positi
: positions[dt.expr.getPos() ? dt.expr.getPos() : noPos];
if (pos) {
out << pos;
out << *pos;
if (auto loc = pos->getCodeLines()) {
out << "\n";
printCodeLines(out, "", *pos, *loc);