[llvm] 232f32f - [DSE] eliminateDeadStoresMemorySSA - fix "initialization is never read" clang-tidy warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 2 07:01:45 PST 2021
Author: Simon Pilgrim
Date: 2021-03-02T15:01:33Z
New Revision: 232f32f0daa527b449f5316436b44b5065e3e048
URL: https://github.com/llvm/llvm-project/commit/232f32f0daa527b449f5316436b44b5065e3e048
DIFF: https://github.com/llvm/llvm-project/commit/232f32f0daa527b449f5316436b44b5065e3e048.diff
LOG: [DSE] eliminateDeadStoresMemorySSA - fix "initialization is never read" clang-tidy warning. NFCI.
Added:
Modified:
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
Removed:
################################################################################
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;
More information about the llvm-commits
mailing list