Skip to content

Commit 8182441

Browse files
AmrDeveloperAnkur-0429
authored andcommitted
[CIR][NFC] Fix an unused variable warning (llvm#138110)
This fixes a warning where a variable assigned in 'if' statement wasn't referenced again.
1 parent f8b7d49 commit 8182441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ LValue CIRGenFunction::emitLValue(const Expr *e) {
519519
return emitBinaryOperatorLValue(cast<BinaryOperator>(e));
520520
case Expr::CompoundAssignOperatorClass: {
521521
QualType ty = e->getType();
522-
if (const AtomicType *at = ty->getAs<AtomicType>()) {
522+
if (ty->getAs<AtomicType>()) {
523523
cgm.errorNYI(e->getSourceRange(),
524524
"CompoundAssignOperator with AtomicType");
525525
return LValue();

0 commit comments

Comments
 (0)