[llvm] 37575f5 - [NFC][ValueTracking] Fix Wunused-variable
Jordan Rupprecht via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 12 09:28:00 PDT 2024
Author: Jordan Rupprecht
Date: 2024-04-12T16:27:53Z
New Revision: 37575f5262d0e37a1e0b10c59fb8f59182cfe951
URL: https://github.com/llvm/llvm-project/commit/37575f5262d0e37a1e0b10c59fb8f59182cfe951
DIFF: https://github.com/llvm/llvm-project/commit/37575f5262d0e37a1e0b10c59fb8f59182cfe951.diff
LOG: [NFC][ValueTracking] Fix Wunused-variable
For e0a628715a8464e220c8ba9e9aaaf2561139198a
Added:
Modified:
llvm/lib/Analysis/InstructionSimplify.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp
index e83657df20f2a0..4e6e666922671d 100644
--- a/llvm/lib/Analysis/InstructionSimplify.cpp
+++ b/llvm/lib/Analysis/InstructionSimplify.cpp
@@ -2713,8 +2713,6 @@ static Constant *computePointerICmp(CmpInst::Predicate Pred, Value *LHS,
assert(LHS->getType() == RHS->getType() && "Must have same types");
const DataLayout &DL = Q.DL;
const TargetLibraryInfo *TLI = Q.TLI;
- const DominatorTree *DT = Q.DT;
- const Instruction *CxtI = Q.CxtI;
// We can only fold certain predicates on pointer comparisons.
switch (Pred) {
More information about the llvm-commits
mailing list