summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 8e2bac6ed0f..5f6f81de148 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -3441,7 +3441,7 @@ void Sema::CheckAlignasUnderalignment(Decl *D) {
Ty = VD->getType();
else
Ty = Context.getTagDeclType(cast<TagDecl>(D));
- if (Ty->isDependentType())
+ if (Ty->isDependentType() || Ty->isIncompleteType())
return;
// C++11 [dcl.align]p5, C11 6.7.5/4:
OpenPOWER on IntegriCloud