From 232f32f0daa527b449f5316436b44b5065e3e048 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 2 Mar 2021 13:42:03 +0000 Subject: [PATCH] [DSE] eliminateDeadStoresMemorySSA - fix "initialization is never read" clang-tidy warning. NFCI. --- llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp index 7d58292da0a3..04467f4306e7 100644 --- a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp +++ b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp @@ -2504,7 +2504,7 @@ bool eliminateDeadStoresMemorySSA(Function &F, AliasAnalysis &AA, MemoryAccess *Current = KillingDef; LLVM_DEBUG(dbgs() << "Trying to eliminate MemoryDefs killed by " - << *KillingDef << " (" << *SI << ")\n"); + << *Current << " (" << *SI << ")\n"); unsigned ScanLimit = MemorySSAScanLimit; unsigned WalkerStepLimit = MemorySSAUpwardsStepLimit;