summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/address-space-of-this.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Sema] Diagnose addr space mismatch while constructing objectsAnastasia Stulova2019-06-201-1/+4
| | | | | | | | | | | | | | If we construct an object in some arbitrary non-default addr space it should fail unless either: - There is an implicit conversion from the address space to default /generic address space. - There is a matching ctor qualified with an address space that is either exactly matching or convertible to the address space of an object. Differential Revision: https://reviews.llvm.org/D62156 llvm-svn: 363944
* [PR41276] Fixed incorrect generation of addr space cast for 'this' in C++.Anastasia Stulova2019-04-041-0/+9
Improved classification of address space cast when qualification conversion is performed - prevent adding addr space cast for non-pointer and non-reference types. Take address space correctly from the pointee. Also pass correct address space from 'this' object using AggValueSlot when generating addrspacecast in the constructor call. Differential Revision: https://reviews.llvm.org/D59988 llvm-svn: 357682
OpenPOWER on IntegriCloud