================ @@ -499,6 +499,7 @@ static bool isNormalAssignmentOperator(const FunctionDecl *FD) { } bool implicitObjectParamIsLifetimeBound(const FunctionDecl *FD) { + FD = FD->getMostRecentDecl(); ---------------- ilya-biryukov wrote:
It would be great to explain the need for `getMostRecentDecl()`, either: - (my preferred option) with a function with descriptive name that calls `getMostRecentDecl`, e.g. `getDeclWithLifetimeBound(...)` - with a comment at each call site. https://github.com/llvm/llvm-project/pull/107627 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits