List implicit operator== after implicit destructors in a vtable.
authorRichard Smith <richard@metafoo.co.uk>
Fri, 17 Jan 2020 02:35:46 +0000 (18:35 -0800)
committerRichard Smith <richard@metafoo.co.uk>
Mon, 20 Jan 2020 02:31:36 +0000 (18:31 -0800)
commitadd2b7e44ada46f30715b5c48823a9e9e317e0c3
treea55a6d40834d51747aaf3c3e1af12a936cf83582
parent13fa4e2e5ae6ab5403be19e24415e0c7a5569681
List implicit operator== after implicit destructors in a vtable.

Summary:
We previously listed first declared members, then implicit operator=,
then implicit operator==, then implicit destructors. Per discussion on
https://github.com/itanium-cxx-abi/cxx-abi/issues/88, put the implicit
equality comparison operators at the very end, after all special member
functions.

Reviewers: rjmccall

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D72897
clang/lib/AST/VTableBuilder.cpp
clang/test/CodeGenCXX/virtual-compare.cpp [new file with mode: 0644]