summaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplateInstantiate.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2018-06-19 05:04:44 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2018-06-19 05:04:44 +0000
commit485081104cd7d2700ae0c18dd0887cd6251bcfd3 (patch)
tree9c2620154f482c16025fb72cc4f15604ddcd59cc /lib/Sema/SemaTemplateInstantiate.cpp
parentb93627660685bf26a05c6a429a2d330805b160af (diff)
downloadclang-485081104cd7d2700ae0c18dd0887cd6251bcfd3.tar.gz
[Sema] Produce diagnostics for attribute 'trivial_abi' that appears
after the closing brace of a class declaration. Merge the two call sites of checkIllFormedTrivialABIStruct and sink it into CheckCompletedCXXClass so that it is called after the attribute has been attached to the CXXRecordDecl. rdar://problem/40873297 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335021 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiate.cpp')
-rw-r--r--lib/Sema/SemaTemplateInstantiate.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Sema/SemaTemplateInstantiate.cpp b/lib/Sema/SemaTemplateInstantiate.cpp
index ebda251c64..2218bdd958 100644
--- a/lib/Sema/SemaTemplateInstantiate.cpp
+++ b/lib/Sema/SemaTemplateInstantiate.cpp
@@ -2123,10 +2123,6 @@ Sema::InstantiateClass(SourceLocation PointOfInstantiation,
}
}
- // See if trivial_abi has to be dropped.
- if (Instantiation && Instantiation->hasAttr<TrivialABIAttr>())
- checkIllFormedTrivialABIStruct(*Instantiation);
-
// Finish checking fields.
ActOnFields(nullptr, Instantiation->getLocation(), Instantiation, Fields,
SourceLocation(), SourceLocation(), nullptr);