[cfe-commits] r60377 - /cfe/trunk/lib/Sema/SemaDecl.cpp

Douglas Gregor doug.gregor at gmail.com
Mon Dec 1 14:46:25 PST 2008


Author: dgregor
Date: Mon Dec  1 16:46:22 2008
New Revision: 60377

URL: http://llvm.org/viewvc/llvm-project?rev=60377&view=rev
Log:
Initialize storage class even if we got an erroneous mutable

Modified:
    cfe/trunk/lib/Sema/SemaDecl.cpp

Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=60377&r1=60376&r2=60377&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Mon Dec  1 16:46:22 2008
@@ -1162,6 +1162,7 @@
       // an error here
       Diag(D.getIdentifierLoc(), diag::err_mutable_nonmember);
       InvalidDecl = true;
+      SC = VarDecl::None;
       break;
     }
 





More information about the cfe-commits mailing list