================
@@ -539,6 +539,9 @@ class TrivialFunctionAnalysisVisitor
       if (R->hasDefinition() && R->hasTrivialDestructor())
----------------
rniwa wrote:

Right, `hasTrivialDestructor` returns `false` in this case. But when 
`hasTrivialDestructor` returns `false`, we'd go ahead and check if the 
destructor is trivial still.

Or are you suggesting that we stop doing that and solely rely on 
`hasTrivialDestructor()`?

https://github.com/llvm/llvm-project/pull/183711
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to