HomePhabricator

[Sema] Make canPassInRegisters return true if the CXXRecordDecl passed

Description

[Sema] Make canPassInRegisters return true if the CXXRecordDecl passed
to it is a trivial_abi class.

A class that has all of its copy and move constructors deleted can still
be passed or returned in registers if the class is annotated with
trivial_abi.

This fixes PR39683.

Details

Committed
ahatanakThu, Jan 10, 11:06 PM
Parents
rL350919: [Sanitizer] Intercept getusershell
Branches
Unknown
Tags
Unknown