shafik added inline comments.

================
Comment at: clang/lib/Sema/SemaDeclCXX.cpp:6957
     // FIXME: We can defer doing this until the vtable is marked as used.
-    if (M->isDefaulted() && M->isConstexpr() && M->size_overridden_methods())
+    if (CSM != CXXInvalid && M->isDefaulted() && M->isConstexpr() &&
+        M->size_overridden_methods())
----------------
I realized that based on the constraints on the functions called in 
`DefineDefaultedFunction` we also should be checking `isDeleted()` as well but 
based on the way I drafted this PR I should just do a follow-up.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132906/new/

https://reviews.llvm.org/D132906

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to