]> granicus.if.org Git - clang/commitdiff
Initialize storage class even if we got an erroneous mutable
authorDouglas Gregor <dgregor@apple.com>
Mon, 1 Dec 2008 22:46:22 +0000 (22:46 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 1 Dec 2008 22:46:22 +0000 (22:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60377 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp

index 22048df0189df78463c917ab60adcedcbb944d9f..65abc36cb0b6cb15259917a67e4ad3513c77a158 100644 (file)
@@ -1162,6 +1162,7 @@ Sema::ActOnDeclarator(Scope *S, Declarator &D, DeclTy *lastDecl) {
       // an error here
       Diag(D.getIdentifierLoc(), diag::err_mutable_nonmember);
       InvalidDecl = true;
+      SC = VarDecl::None;
       break;
     }