diff --git a/clang/lib/CrossTU/CrossTranslationUnit.cpp b/clang/lib/CrossTU/CrossTranslationUnit.cpp index a1ffdf3c114d..a503578da051 100644 --- a/clang/lib/CrossTU/CrossTranslationUnit.cpp +++ b/clang/lib/CrossTU/CrossTranslationUnit.cpp @@ -185,6 +185,7 @@ void CrossTranslationUnitContext::emitCrossTUDiagnostics(const IndexError &IE) { case index_error_code::invalid_index_format: Context.getDiagnostics().Report(diag::err_fnmap_parsing) << IE.getFileName() << IE.getLineNum(); + break; case index_error_code::multiple_definitions: Context.getDiagnostics().Report(diag::err_multiple_def_index) << IE.getLineNum();