[PATCH] D72897: List implicit operator== after implicit destructors in a vtable.

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 17 15:11:40 PST 2020


rjmccall accepted this revision.
rjmccall added a comment.
This revision is now accepted and ready to land.

It wouldn't be a bad idea to track that correspondence in the AST just on the general principle that it's useful information (for diagnostics, tooling, etc.) that's otherwise hard to recreate.  But I agree that it's also not problematic to expect Sema to add them in the proper order, and if we don't have an ABI that needs the correspondence directly (e.g. because it wants to emit the operators in pairs), it's fine to rely on it.

Putting the operators at the end makes sense to me.  It seems likely that an arbitrary implementation is always more likely to need to process the implicit members first.

I'm much happier with this implementation; LGTM.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D72897





More information about the cfe-commits mailing list