Skip to content

Commit 916249e

Browse files
committed
RequirementMachine: Fix -debug-requirement-machine=simplify output
1 parent a46a7b8 commit 916249e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AST/RequirementMachine/RewriteSystem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ bool RewriteSystem::simplify(MutableTerm &term, RewritePath *path) const {
264264

265265
if (Debug.contains(DebugFlags::Simplify)) {
266266
if (changed) {
267-
llvm::dbgs() << "= Simplified " << term << ": ";
268-
forDebug.dump(llvm::dbgs(), original, *this);
267+
llvm::dbgs() << "= Simplified " << original << " to " << term << " via ";
268+
(path == nullptr ? &forDebug : path)->dump(llvm::dbgs(), original, *this);
269269
llvm::dbgs() << "\n";
270270
} else {
271271
llvm::dbgs() << "= Irreducible term: " << term << "\n";

0 commit comments

Comments
 (0)