[llvm] r353630 - [InstCombine] Fix an unused variable warning.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 9 18:21:29 PST 2019


Author: ctopper
Date: Sat Feb  9 18:21:29 2019
New Revision: 353630

URL: http://llvm.org/viewvc/llvm-project?rev=353630&view=rev
Log:
[InstCombine] Fix an unused variable warning.

Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp

Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp?rev=353630&r1=353629&r2=353630&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp Sat Feb  9 18:21:29 2019
@@ -4350,7 +4350,7 @@ bool InstCombiner::transformConstExprCas
                 PN->getParent() == II->getUnwindDest())
               return false;
       // FIXME: Be conservative for callbr to avoid a quadratic search.
-      if (CallBrInst *CBI = dyn_cast<CallBrInst>(Caller))
+      if (isa<CallBrInst>(Caller))
         return false;
     }
   }




More information about the llvm-commits mailing list