================
@@ -343,6 +343,16 @@ class RawPtrRefLambdaCapturesChecker
auto *Callee = CE->getCallee();
if (!Callee)
return;
+ Callee = Callee->IgnoreParenCasts();
+ if (auto *MTE = dyn_cast<MaterializeTemporaryExpr>(Callee))
+ Callee = MTE->getSubExpr();
+ if (!Callee)
+ return;
+ Callee = Callee->IgnoreParenCasts();
----------------
rniwa wrote:
I think this is needed in the case we do: `Callee = MTE->getSubExpr();` in line
348. I'll move this and null check for `Callee` inside the if statement for
clarity.
https://github.com/llvm/llvm-project/pull/162977
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits