Skip to content

Commit 4f46945

Browse files
committed
[llvm-remarkutil] Silence a GCC warning about missing returns after a fully covered switch. NFC.
1 parent 4700058 commit 4f46945

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/tools/llvm-remarkutil/RemarkCounter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ std::optional<std::string> Counter::getGroupByKey(const Remark &Remark) {
181181
return Remark.Loc->SourceFilePath.str() + ":" + Remark.FunctionName.str();
182182
return Remark.Loc->SourceFilePath.str();
183183
}
184+
llvm_unreachable("Fully covered switch above!");
184185
}
185186

186187
void ArgumentCounter::collect(const Remark &Remark) {

0 commit comments

Comments
 (0)