Ver código fonte

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 anos atrás
pai
commit
ed5d336001
1 arquivos alterados com 1 adições e 1 exclusões
  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;
   }
 
-  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,