================
@@ -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>()) {
----------------
mmha wrote:

I wonder why `getAs` is not `[[nodiscard]]` but hey it's not so no new warning 
here.

(Maybe `isa` is still better?)

https://github.com/llvm/llvm-project/pull/133134
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to