================
@@ -557,6 +560,35 @@ class TrivialFunctionAnalysisVisitor
     return false; // Otherwise it's likely not trivial.
   }
 
+  bool HasFieldWithNonTrivialDtor(const CXXRecordDecl *Cls) {
----------------
steakhal wrote:

You should cache the "webkit triviality" information of CXXRecordDecls.
I recon, they can get pretty computationally expensive - especially by doing 
redundant work by traversing again and again the same class hierarchy.

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