diff --git a/src/coreclr/jit/gentree.cpp b/src/coreclr/jit/gentree.cpp index 1537ba3e25dc4..505ad72fd6946 100644 --- a/src/coreclr/jit/gentree.cpp +++ b/src/coreclr/jit/gentree.cpp @@ -13299,48 +13299,45 @@ void Compiler::gtDispArgList(GenTreeCall* call, GenTree* lastCallOperand, Indent // void Compiler::gtDispStmt(Statement* stmt, const char* msg /* = nullptr */) { - if (opts.compDbgInfo) + if (msg != nullptr) { - if (msg != nullptr) - { - printf("%s ", msg); - } - printStmtID(stmt); - printf(" ( "); - const DebugInfo& di = stmt->GetDebugInfo(); - // For statements in the root we display just the location without the - // inline context info. - if (di.GetInlineContext() == nullptr || di.GetInlineContext()->IsRoot()) - { - di.GetLocation().Dump(); - } - else - { - stmt->GetDebugInfo().Dump(false); - } - printf(" ... "); - - IL_OFFSET lastILOffs = stmt->GetLastILOffset(); - if (lastILOffs == BAD_IL_OFFSET) - { - printf("???"); - } - else - { - printf("0x%03X", lastILOffs); - } + printf("%s ", msg); + } + printStmtID(stmt); + printf(" ( "); + const DebugInfo& di = stmt->GetDebugInfo(); + // For statements in the root we display just the location without the + // inline context info. + if (di.GetInlineContext() == nullptr || di.GetInlineContext()->IsRoot()) + { + di.GetLocation().Dump(); + } + else + { + stmt->GetDebugInfo().Dump(false); + } + printf(" ... "); - printf(" )"); + IL_OFFSET lastILOffs = stmt->GetLastILOffset(); + if (lastILOffs == BAD_IL_OFFSET) + { + printf("???"); + } + else + { + printf("0x%03X", lastILOffs); + } - DebugInfo par; - if (stmt->GetDebugInfo().GetParent(&par)) - { - printf(" <- "); - par.Dump(true); - } + printf(" )"); - printf("\n"); + DebugInfo par; + if (stmt->GetDebugInfo().GetParent(&par)) + { + printf(" <- "); + par.Dump(true); } + printf("\n"); + gtDispTree(stmt->GetRootNode()); }