usx95 wrote:

Looks like I have not fully resolved the memory leak and only avoided it by 
having larger portion of vector on stack.


The leak happens for the allocation: 
```
SmallVector<IdentifierInfo *> ParamIdents;
ParamIdents.push_back(IdLoc->Ident); // <- allocated here.
```

Suprisingly commenting out the `move` makes things go back to normal.
`  // CapturedBy->setArgs(std::move(ParamIdents), std::move(ParamLocs));`

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

Reply via email to