Skip to content

Commit f1b4a3b

Browse files
authored
[llvm-cov] Fix MSVC "not all control paths return a value" warning. NFC. (#161150)
1 parent 2ab2ffe commit f1b4a3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/tools/llvm-cov/CoverageExporterJson.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ json::Value renderCondState(const coverage::MCDCRecord::CondState CondState) {
118118
case coverage::MCDCRecord::MCDC_False:
119119
return json::Value(false);
120120
}
121+
llvm_unreachable("Unknown llvm::coverage::MCDCRecord::CondState enum");
121122
}
122123

123124
json::Array gatherTestVectors(coverage::MCDCRecord &Record) {

0 commit comments

Comments
 (0)