r363651 - Fix compiler warning by removing unused variable

Mikael Holmen via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 17 23:41:57 PDT 2019


Author: uabelho
Date: Mon Jun 17 23:41:56 2019
New Revision: 363651

URL: http://llvm.org/viewvc/llvm-project?rev=363651&view=rev
Log:
Fix compiler warning by removing unused variable

Modified:
    cfe/trunk/lib/CodeGen/CGExprConstant.cpp

Modified: cfe/trunk/lib/CodeGen/CGExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprConstant.cpp?rev=363651&r1=363650&r2=363651&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprConstant.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprConstant.cpp Mon Jun 17 23:41:56 2019
@@ -356,7 +356,7 @@ bool ConstantAggregateBuilder::split(siz
     return true;
   }
 
-  if (auto *CAZ = dyn_cast<llvm::ConstantAggregateZero>(C)) {
+  if (isa<llvm::ConstantAggregateZero>(C)) {
     CharUnits ElemSize = getSize(C);
     assert(Hint > Offset && Hint < Offset + ElemSize && "nothing to split");
     replace(Elems, Index, Index + 1,




More information about the cfe-commits mailing list