diff options
| author | Mikael Holmen <mikael.holmen@ericsson.com> | 2019-06-18 06:41:56 +0000 |
|---|---|---|
| committer | Mikael Holmen <mikael.holmen@ericsson.com> | 2019-06-18 06:41:56 +0000 |
| commit | ed5d336001af604641d7fd4f00b752a442d73d0f (patch) | |
| tree | b2cc0f12b481e613e1fcd42d72e6321dab1e4bac /lib/CodeGen/CGExprConstant.cpp | |
| parent | 3a552dd809e0327c89b977c76d4f5372d955501b (diff) | |
| download | clang-ed5d336001af604641d7fd4f00b752a442d73d0f.tar.gz | |
Fix compiler warning by removing unused variable
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363651 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
| -rw-r--r-- | lib/CodeGen/CGExprConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<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, |
