rniwa wrote:

> As per the guidelines, trivial inline functions shouldn't be changed to adopt 
> smart pointers.

The triviality of a function is checked by `TrivialFunctionAnalysis`. We 
shouldn't assume every inline function as trivial. For example, an inline 
function could call a non-inline function which mutates the memory state.

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

Reply via email to