Skip to content

Commit cf1abe6

Browse files
authored
[CIR][NFC] Fix an unused variable warning (#150758)
This fixes a warning where a variable assigned in 'if' statement wasn't referenced again.
1 parent c9a87b4 commit cf1abe6

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)