[NFC][clang] Fix static analyzer concern about uninitialized variable
authorMariya Podchishchaeva <mariya.podchishchaeva@intel.com>
Tue, 7 Feb 2023 09:25:05 +0000 (04:25 -0500)
committerMariya Podchishchaeva <mariya.podchishchaeva@intel.com>
Tue, 7 Feb 2023 09:40:44 +0000 (04:40 -0500)
Reviewed By: xazax.hun

Differential Revision: https://reviews.llvm.org/D143411

clang/lib/Sema/AnalysisBasedWarnings.cpp

index f079471..b6dce08 100644 (file)
@@ -574,6 +574,7 @@ struct CheckFallThroughDiagnostics {
     D.diag_AlwaysFallThrough_HasNoReturn = 0;
     D.diag_AlwaysFallThrough_ReturnsNonVoid =
         diag::warn_falloff_nonvoid_coroutine;
+    D.diag_NeverFallThroughOrReturn = 0;
     D.funMode = Coroutine;
     return D;
   }