diff options
Diffstat (limited to 'lib/Frontend/DiagnosticRenderer.cpp')
| -rw-r--r-- | lib/Frontend/DiagnosticRenderer.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Frontend/DiagnosticRenderer.cpp b/lib/Frontend/DiagnosticRenderer.cpp index fb0a92d1f8c6..757ceec7ec9d 100644 --- a/lib/Frontend/DiagnosticRenderer.cpp +++ b/lib/Frontend/DiagnosticRenderer.cpp @@ -172,9 +172,9 @@ void DiagnosticRenderer::emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc,    // Skip redundant include stacks altogether.    if (LastIncludeLoc == IncludeLoc)      return; -   +    LastIncludeLoc = IncludeLoc; -   +    if (!DiagOpts->ShowNoteIncludeStack && Level == DiagnosticsEngine::Note)      return; @@ -199,7 +199,7 @@ void DiagnosticRenderer::emitIncludeStackRecursively(FullSourceLoc Loc) {      return;    // If this source location was imported from a module, print the module -  // import stack rather than the  +  // import stack rather than the    // FIXME: We want submodule granularity here.    std::pair<FullSourceLoc, StringRef> Imported = Loc.getModuleImportLoc();    if (!Imported.second.empty()) {  | 
