[llvm] r244725 - unused variable warning fix.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 12 01:23:36 PDT 2015


Author: rksimon
Date: Wed Aug 12 03:23:36 2015
New Revision: 244725

URL: http://llvm.org/viewvc/llvm-project?rev=244725&view=rev
Log:
unused variable warning fix.

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=244725&r1=244724&r2=244725&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp Wed Aug 12 03:23:36 2015
@@ -970,7 +970,7 @@ Instruction *InstCombiner::visitCallInst
       return ReplaceInstUsesWith(CI, Op0);
 
     // Zero Mask - select 1st argument.
-    if (auto C = dyn_cast<ConstantAggregateZero>(Mask))
+    if (isa<ConstantAggregateZero>(Mask))
       return ReplaceInstUsesWith(CI, Op0);
 
     // Constant Mask - select 1st/2nd argument lane based on top bit of mask.




More information about the llvm-commits mailing list