Skip to content

Commit 5905c9d

Browse files
committed
[CIR][NFC] Fix an unused variable warning
1 parent 4065510 commit 5905c9d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,7 @@ void AggExprEmitter::visitCXXParenListOrInitListExpr(
438438
// Push a destructor if necessary.
439439
// FIXME: if we have an array of structures, all explicitly
440440
// initialized, we can end up pushing a linear number of cleanups.
441-
if (QualType::DestructionKind dtorKind =
442-
field->getType().isDestructedType()) {
441+
if (field->getType().isDestructedType()) {
443442
cgf.cgm.errorNYI(e->getSourceRange(),
444443
"visitCXXParenListOrInitListExpr destructor");
445444
return;

0 commit comments

Comments
 (0)