[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


================
@@ -137,7 +137,7 @@ struct CallArg {
 
   /// A data-flow flag to make sure getRValue and/or copyInto are not
   /// called twice for duplicated IR emission.
-  mutable bool isUsed;
+  [[maybe_unused]] mutable bool isUsed;
----------------
andykaylor wrote:

Ironic, isn't it?

https://github.com/llvm/llvm-project/pull/151412


More information about the cfe-commits mailing list