[clang] ca22d6e - [Coverage] Fix -Wswitch after D138847

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 20 14:21:03 PDT 2023


Author: Fangrui Song
Date: 2023-09-20T14:20:58-07:00
New Revision: ca22d6e40508f6d24a9352835bda9c152e3eee1b

URL: https://github.com/llvm/llvm-project/commit/ca22d6e40508f6d24a9352835bda9c152e3eee1b
DIFF: https://github.com/llvm/llvm-project/commit/ca22d6e40508f6d24a9352835bda9c152e3eee1b.diff

LOG: [Coverage] Fix -Wswitch after D138847

Added: 
    

Modified: 
    clang/lib/CodeGen/CoverageMappingGen.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CoverageMappingGen.cpp b/clang/lib/CodeGen/CoverageMappingGen.cpp
index 32c67739915380c..09e771a066763c7 100644
--- a/clang/lib/CodeGen/CoverageMappingGen.cpp
+++ b/clang/lib/CodeGen/CoverageMappingGen.cpp
@@ -1629,6 +1629,12 @@ static void dump(llvm::raw_ostream &OS, StringRef FunctionName,
     case CounterMappingRegion::BranchRegion:
       OS << "Branch,";
       break;
+    case CounterMappingRegion::MCDCDecisionRegion:
+      OS << "MCDCDecisionRegion,";
+      break;
+    case CounterMappingRegion::MCDCBranchRegion:
+      OS << "MCDCBranchRegion,";
+      break;
     }
 
     OS << "File " << R.FileID << ", " << R.LineStart << ":" << R.ColumnStart


        


More information about the cfe-commits mailing list