diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-04-05 18:55:37 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-04-05 18:55:37 +0000 |
commit | b6070db0d0849481c6cd6cd9263530cbbb97b140 (patch) | |
tree | 5f1643f7d954c6924a90db53f1264e6707133d9d /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 367c2aea4ef30691f8843c8858cdab43c8339983 (diff) | |
download | bcm5719-llvm-b6070db0d0849481c6cd6cd9263530cbbb97b140.tar.gz bcm5719-llvm-b6070db0d0849481c6cd6cd9263530cbbb97b140.zip |
DR1672, DR1813, DR1881, DR2120: Implement recent fixes to "standard
layout" rules.
The new rules say that a standard-layout struct has its first non-static
data member and all base classes at offset 0, and consider a class to
not be standard-layout if that would result in multiple subobjects of a
single type having the same address.
We track "is C++11 standard-layout class" separately from "is
standard-layout class" so that the ABIs that need this information can
still use it.
Differential Revision: https://reviews.llvm.org/D45176
llvm-svn: 329332
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions