  
 @@ -483,15 +488,17 @@
      // Late template parsing can begin.
-     if (getLang().DelayedTemplateParsing)
+     if (getLangOpts().DelayedTemplateParsing)
        Actions.SetLateTemplateParser(LateTemplateParserCallback, this);
 +    if (!PP.isIncrementalProcessingEnabled())
 +      Actions.ActOnEndOfTranslationUnit();

   Result = ParseExternalDeclaration(attrs);
   return false;
 }


Index: tools/clang/include/clang/Lex/Preprocessor.h
===================================================================
--- tools/clang/include/clang/Lex/Preprocessor.h	(revision 152550)
+++ tools/clang/include/clang/Lex/Preprocessor.h	(working copy)
@@ -148,6 +148,10 @@
   /// with this preprocessor.
