summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-02-07 00:43:07 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-02-07 00:43:07 +0000
commit98c9ee2068dc94d2b3f595545b10ef57503acd4b (patch)
tree1b656eb06e43f9b7e4cc140a259cda6a08cb2922 /clang/lib/Sema/SemaDecl.cpp
parent37c9267107ba4e800e5ab9400e681cca2cb31e73 (diff)
downloadbcm5719-llvm-98c9ee2068dc94d2b3f595545b10ef57503acd4b.tar.gz
bcm5719-llvm-98c9ee2068dc94d2b3f595545b10ef57503acd4b.zip
MS ABI: Don't be so hasty to judge an inheritance model
If we are in the middle of defining the class, don't attempt to validate previously annotated declarations. We may not have seen base specifiers or virtual method declarations yet. llvm-svn: 200959
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 8b750812d9c..dd059bbb098 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -12150,7 +12150,7 @@ void Sema::ActOnFields(Scope *S, SourceLocation RecLoc, Decl *EnclosingDecl,
if (Record->hasAttrs()) {
CheckAlignasUnderalignment(Record);
- if (MSInheritanceAttr *IA = Record->getAttr<MSInheritanceAttr>())
+ if (const MSInheritanceAttr *IA = Record->getAttr<MSInheritanceAttr>())
checkMSInheritanceAttrOnDefinition(cast<CXXRecordDecl>(Record),
IA->getRange(),
IA->getSemanticSpelling());
OpenPOWER on IntegriCloud