diff options
Diffstat (limited to 'lib/Sema/Sema.cpp')
-rw-r--r-- | lib/Sema/Sema.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp index f36312ede0..fdeacd7ad6 100644 --- a/lib/Sema/Sema.cpp +++ b/lib/Sema/Sema.cpp @@ -1065,8 +1065,8 @@ bool Sema::CheckArrayTypeDeclarationCompability(const ArrayType *T, VarDecl *VD) return false; for(auto I = T->begin(); I != T->end(); ++I) { auto Shape = *I; - if(auto Explicit = dyn_cast<ExplicitShapeSpec>(Shape)) { - } else { + auto Explicit = dyn_cast<ExplicitShapeSpec>(Shape); + if(!Explicit) { // implied auto Implied = cast<ImpliedShapeSpec>(Shape); if(!VD->isArgument()) { |