Skip to content

Commit

Permalink
[clang codegen] Fix MS ABI detection of user-provided constructors. (l…
Browse files Browse the repository at this point in the history
…lvm#90151)

In the context of determining whether a class counts as an "aggregate",
a constructor template counts as a user-provided constructor.

Fixes llvm#86384

(cherry picked from commit 3ab4ae9)
  • Loading branch information
efriedma-quic authored and Shivam Gupta committed Aug 23, 2024
1 parent be8ccf9 commit e7c1578
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clang/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ ABI Changes in This Version
`-fms-compatibility-version=19.14` to imitate the MSVC 1914 mangling behavior.
(GH#70899).

- Fixed Microsoft calling convention for returning certain classes with a
templated constructor. If a class has a templated constructor, it should
be returned indirectly even if it meets all the other requirements for
returning a class in a register. This affects some uses of std::pair.
(#GH86384).

AST Dumping Potentially Breaking Changes
----------------------------------------

Expand Down

0 comments on commit e7c1578

Please sign in to comment.