Prechádzať zdrojové kódy

Fix compiler warning by removing unused variable

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363651 91177308-0d34-0410-b5e6-96231b3b80d8
Mikael Holmen 6 rokov pred
rodič
commit
ed5d336001
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      lib/CodeGen/CGExprConstant.cpp

+ 1 - 1
lib/CodeGen/CGExprConstant.cpp

@@ -356,7 +356,7 @@ bool ConstantAggregateBuilder::split(size_t Index, CharUnits Hint) {
     return true;
     return true;
   }
   }
 
 
-  if (auto *CAZ = dyn_cast<llvm::ConstantAggregateZero>(C)) {
+  if (isa<llvm::ConstantAggregateZero>(C)) {
     CharUnits ElemSize = getSize(C);
     CharUnits ElemSize = getSize(C);
     assert(Hint > Offset && Hint < Offset + ElemSize && "nothing to split");
     assert(Hint > Offset && Hint < Offset + ElemSize && "nothing to split");
     replace(Elems, Index, Index + 1,
     replace(Elems, Index, Index + 1,