[llvm] 52296e2 - [DomCondCache] Remove unused variable (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 8 01:25:14 PST 2023
Author: Nikita Popov
Date: 2023-12-08T10:25:04+01:00
New Revision: 52296e25277146bf2643156627971c11cc7f4a37
URL: https://github.com/llvm/llvm-project/commit/52296e25277146bf2643156627971c11cc7f4a37
DIFF: https://github.com/llvm/llvm-project/commit/52296e25277146bf2643156627971c11cc7f4a37.diff
LOG: [DomCondCache] Remove unused variable (NFC)
Added:
Modified:
llvm/lib/Analysis/DomConditionCache.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/DomConditionCache.cpp b/llvm/lib/Analysis/DomConditionCache.cpp
index 351881fe9e1f9..c7f4cab415888 100644
--- a/llvm/lib/Analysis/DomConditionCache.cpp
+++ b/llvm/lib/Analysis/DomConditionCache.cpp
@@ -36,8 +36,7 @@ static void findAffectedValues(Value *Cond,
ICmpInst::Predicate Pred;
Value *A;
- Constant *C;
- if (match(Cond, m_ICmp(Pred, m_Value(A), m_Constant(C)))) {
+ if (match(Cond, m_ICmp(Pred, m_Value(A), m_Constant()))) {
AddAffected(A);
if (ICmpInst::isEquality(Pred)) {
More information about the llvm-commits
mailing list