]> granicus.if.org Git - clang/commitdiff
Initialize the MSVCGuidDecl variable in the correct order.
authorBill Wendling <isanbard@gmail.com>
Wed, 8 Sep 2010 21:30:16 +0000 (21:30 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 8 Sep 2010 21:30:16 +0000 (21:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113412 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/Sema.cpp

index 60e8c14cf92a378eba82d68d703fb51778033f87..3bb205ac17fb8ba2ec55078adebfbb06ac47b565 100644 (file)
@@ -134,11 +134,12 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer,
     Diags(PP.getDiagnostics()), SourceMgr(PP.getSourceManager()),
     ExternalSource(0), CodeCompleter(CodeCompleter), CurContext(0), 
     PackContext(0), VisContext(0), ParsingDeclDepth(0),
-    IdResolver(pp.getLangOptions()), GlobalNewDeleteDeclared(false), 
+    IdResolver(pp.getLangOptions()), MSVCGuidDecl(0),
+    GlobalNewDeleteDeclared(false), 
     CompleteTranslationUnit(CompleteTranslationUnit),
     NumSFINAEErrors(0), SuppressAccessChecking(false),
     NonInstantiationEntries(0), CurrentInstantiationScope(0), TyposCorrected(0),
-    AnalysisWarnings(*this), MSVCGuidDecl(0)
+    AnalysisWarnings(*this)
 {
   TUScope = 0;
   if (getLangOptions().CPlusPlus)