diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2018-02-16 19:10:26 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2018-02-16 19:10:26 +0000 |
commit | 6eea8b8c1aad853d6161709d8b3035dfd867fa1c (patch) | |
tree | 195fb543fdb28a1c2a6baf81d96adc1bc302f8ca /lib/AST/ASTContext.cpp | |
parent | 660d91aa9ee00f68bdb884b29845a39be78bc557 (diff) |
Notes
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 3dc961d4f12b..c73ae9efe170 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -2145,7 +2145,7 @@ static bool unionHasUniqueObjectRepresentations(const ASTContext &Context, if (FieldSize != UnionSize) return false; } - return true; + return !RD->field_empty(); } static bool isStructEmpty(QualType Ty) { |