[clang] [CIR] Fix warnings related to unused variables in release builds (PR #151412)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 30 15:56:25 PDT 2025
================
@@ -1472,9 +1472,10 @@ Address CIRGenFunction::emitArrayToPointerDecay(const Expr *e) {
if (e->getType()->isVariableArrayType())
return addr;
- auto pointeeTy = mlir::cast<cir::ArrayType>(lvalueAddrTy.getPointee());
+ [[maybe_unused]] auto pointeeTy =
----------------
andykaylor wrote:
These could be sunk into the asserts, but the expressions would need to be repeated. I was on the fence about which way to go.
https://github.com/llvm/llvm-project/pull/151412
More information about the cfe-commits
mailing list