================
@@ -610,10 +610,18 @@ void FactsGenerator::markUseAsWrite(const DeclRefExpr
*DRE) {
// parameter at the function's entry.
llvm::SmallVector<Fact *> FactsGenerator::issuePlaceholderLoans() {
const auto *FD = dyn_cast<FunctionDecl>(AC.getDecl());
- if (!FD)
+ if (!FD || FD->isImplicit())
----------------
kashika0112 wrote:
After the recent updates to `implicitObjectParamIsLifetimeBound` function where
we're iterating all the redecls, the `FD->isImplicit()` and the if-else
condition in new `suggestAnnotation` overload is no longer required. Earlier it
was crashing and I was getting warnings in `struct [[gsl::pointer]] View`.
https://github.com/llvm/llvm-project/pull/176703
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits