Author: Andy Kaylor Date: 2025-04-09T14:27:09-07:00 New Revision: f75dce43ea0a98c0ade916cf3ffcc7548f569821
URL: https://github.com/llvm/llvm-project/commit/f75dce43ea0a98c0ade916cf3ffcc7548f569821 DIFF: https://github.com/llvm/llvm-project/commit/f75dce43ea0a98c0ade916cf3ffcc7548f569821.diff LOG: [CIR][NFC] Fix an unused variable warning (#135046) This fixes a warning where a variable assigned in a 'if' statement wasn't referenced again. Added: Modified: clang/lib/CIR/CodeGen/CIRGenExpr.cpp Removed: ################################################################################ diff --git a/clang/lib/CIR/CodeGen/CIRGenExpr.cpp b/clang/lib/CIR/CodeGen/CIRGenExpr.cpp index 0398ac30ccf20..441d841bf41f1 100644 --- a/clang/lib/CIR/CodeGen/CIRGenExpr.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenExpr.cpp @@ -36,7 +36,7 @@ Address CIRGenFunction::emitPointerWithAlignment(const Expr *expr) { // Casts: if (auto const *ce = dyn_cast<CastExpr>(expr)) { - if (auto const *ece = dyn_cast<ExplicitCastExpr>(ce)) { + if (isa<ExplicitCastExpr>(ce)) { cgm.errorNYI(expr->getSourceRange(), "emitPointerWithAlignment: explicit cast"); return Address::invalid(); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits