DeadCodeElimination: fix debug logging of to-instruction when adding a reverse dependency

This commit is contained in:
Erik Eckstein
2024-01-22 13:44:52 +01:00
parent f933f2ac25
commit 44f4ea9099

View File

@@ -347,7 +347,7 @@ void DCE::markLive() {
// Records a reverse dependency if needed. See DCE::ReverseDependencies.
void DCE::addReverseDependency(SILValue from, SILInstruction *to) {
LLVM_DEBUG(llvm::dbgs() << "Adding reverse dependency from " << from << " to "
<< to);
<< *to);
ReverseDependencies[from].insert(to);
}