From: Mikael Holmen Date: Tue, 18 Jun 2019 06:41:56 +0000 (+0000) Subject: Fix compiler warning by removing unused variable X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed5d336001af604641d7fd4f00b752a442d73d0f;p=clang Fix compiler warning by removing unused variable git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363651 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index bddecff05e..e94fc67a4c 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/lib/CodeGen/CGExprConstant.cpp @@ -356,7 +356,7 @@ bool ConstantAggregateBuilder::split(size_t Index, CharUnits Hint) { return true; } - if (auto *CAZ = dyn_cast(C)) { + if (isa(C)) { CharUnits ElemSize = getSize(C); assert(Hint > Offset && Hint < Offset + ElemSize && "nothing to split"); replace(Elems, Index, Index + 1,