diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-06-20 20:44:45 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-06-20 20:44:45 +0000 |
commit | 78b239ea67cf248a5c04031050c32f707f127a9d (patch) | |
tree | 23150096a3e3d50ec9a6285ddf6d170b6a61ac20 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 60ca31a7ddabb46c9ea3762949629433c5eb4c8c (diff) | |
download | bcm5719-llvm-78b239ea67cf248a5c04031050c32f707f127a9d.tar.gz bcm5719-llvm-78b239ea67cf248a5c04031050c32f707f127a9d.zip |
P0840R2: support for [[no_unique_address]] attribute
Summary:
Add support for the C++2a [[no_unique_address]] attribute for targets using the Itanium C++ ABI.
This depends on D63371.
Reviewers: rjmccall, aaron.ballman
Subscribers: dschuff, aheejin, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D63451
llvm-svn: 363976
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index e95a07ce0e4..efb68c56041 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -2322,14 +2322,7 @@ public: } /// Determine whether a field initialization may overlap some other object. - AggValueSlot::Overlap_t overlapForFieldInit(const FieldDecl *FD) { - // FIXME: These cases can result in overlap as a result of P0840R0's - // [[no_unique_address]] attribute. We can still infer NoOverlap in the - // presence of that attribute if the field is within the nvsize of its - // containing class, because non-virtual subobjects are initialized in - // address order. - return AggValueSlot::DoesNotOverlap; - } + AggValueSlot::Overlap_t overlapForFieldInit(const FieldDecl *FD); /// Determine whether a base class initialization may overlap some other /// object. |