diff options
author | Amr Hesham <amr96@programmer.net> | 2025-05-01 18:49:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-01 18:49:46 +0200 |
commit | a9ccb246178a454abba8fb53499012d586e5eea9 (patch) | |
tree | 2bd75fc413abd59db2b0a80b958885db326aed23 /clang/lib | |
parent | a7aca819d44b8d67f2cffd452e6b63741c83cd62 (diff) | |
download | llvm-a9ccb246178a454abba8fb53499012d586e5eea9.zip llvm-a9ccb246178a454abba8fb53499012d586e5eea9.tar.gz llvm-a9ccb246178a454abba8fb53499012d586e5eea9.tar.bz2 |
[CIR][NFC] Fix an unused variable warning (#138110)
This fixes a warning where a variable assigned in 'if' statement wasn't
referenced again.
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CIR/CodeGen/CIRGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CIR/CodeGen/CIRGenFunction.cpp b/clang/lib/CIR/CodeGen/CIRGenFunction.cpp index fa86fce..a424f7a 100644 --- a/clang/lib/CIR/CodeGen/CIRGenFunction.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenFunction.cpp @@ -519,7 +519,7 @@ LValue CIRGenFunction::emitLValue(const Expr *e) { return emitBinaryOperatorLValue(cast<BinaryOperator>(e)); case Expr::CompoundAssignOperatorClass: { QualType ty = e->getType(); - if (const AtomicType *at = ty->getAs<AtomicType>()) { + if (ty->getAs<AtomicType>()) { cgm.errorNYI(e->getSourceRange(), "CompoundAssignOperator with AtomicType"); return LValue(); |