================
@@ -136,31 +136,38 @@ getTrackedArgInfo(const FunctionDecl *FD,
llvm::ArrayRef<const Expr *> Args,
Method && Method->isInstance() && !isa<CXXConstructorDecl>(FD)) {
if (I == 0) {
// For the 'this' argument, the attribute is on the method itself.
- if (implicitObjectParamIsLifetimeBound(Method) ||
+ if (getImplicitObjectParamLifetimeBoundAttr(Method))
+ return LifetimeBoundArgInfo{LifetimeBoundParamInfo(Method),
+ /*IsInferred=*/false};
----------------
NeKon69 wrote:
This is just a personal preference but maybe we could simplify all of the code
blocks like these to this form?
```cpp
return {Func, /*IsInferred=*/value};
```
https://github.com/llvm/llvm-project/pull/220248
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits