[clang] [CIR][NFC] Fix warnings in ClangIR code (PR #133134)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 26 11:59:52 PDT 2025


================
@@ -170,7 +170,7 @@ mlir::Value CIRGenFunction::evaluateExprAsBool(const Expr *e) {
   SourceLocation loc = e->getExprLoc();
 
   assert(!cir::MissingFeatures::pgoUse());
-  if (const MemberPointerType *MPT = e->getType()->getAs<MemberPointerType>()) {
+  if (e->getType()->getAs<MemberPointerType>()) {
----------------
andykaylor wrote:

Eventually we'll need the return value here, but probably not for a while. This isn't implemented in the incubator either.

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


More information about the cfe-commits mailing list