forked from OSchip/llvm-project
Initialize storage class even if we got an erroneous mutable
llvm-svn: 60377
This commit is contained in:
parent
b2f131a4ab
commit
b690cbb928
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue