Skip to content

Commit 0f681b6

Browse files
committed
Do not print debug locations when minifying
This is not supported anyway, since this relies on the indentation information, which is not updated when minifying.
1 parent d139d54 commit 0f681b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/passes/Print.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2475,6 +2475,9 @@ std::ostream& PrintSExpression::printPrefixedTypes(const char* prefix,
24752475

24762476
void PrintSExpression::printDebugLocation(
24772477
const std::optional<Function::DebugLocation>& location) {
2478+
if (minify) {
2479+
return;
2480+
}
24782481
// Do not skip repeated debug info in full mode, for less-confusing debugging:
24792482
// full mode prints out everything in the most verbose manner.
24802483
if (lastPrintedLocation == location && indent > lastPrintIndent && !full) {

0 commit comments

Comments
 (0)