Address unused variable warning
authorJuneyoung Lee <aqjune@gmail.com>
Tue, 19 Jan 2021 00:30:16 +0000 (09:30 +0900)
committerJuneyoung Lee <aqjune@gmail.com>
Tue, 19 Jan 2021 00:30:16 +0000 (09:30 +0900)
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp

index 5929161..c42f113 100644 (file)
@@ -3460,8 +3460,6 @@ Instruction *InstCombinerImpl::visitXor(BinaryOperator &I) {
       bool InvertibleT = (CmpT && CmpT->hasOneUse()) || isa<Constant>(TV);
       bool InvertibleF = (CmpF && CmpF->hasOneUse()) || isa<Constant>(FV);
       if (InvertibleT && InvertibleF) {
-        Constant *One = cast<Constant>(Op1);
-
         if (CmpT)
           CmpT->setPredicate(CmpT->getInversePredicate());
         else