forked from OSchip/llvm-project
Fix "not all control paths return a value" warning on MSVC builds.
Use llvm_unreachable as typeName(Metric::MetricType T) should handle all enum values.
This commit is contained in:
parent
0fc1f2b7cd
commit
6e99199419
|
@ -225,6 +225,7 @@ private:
|
|||
case Metric::Distribution:
|
||||
return "d";
|
||||
}
|
||||
llvm_unreachable("Unknown Metric::MetricType enum");
|
||||
}
|
||||
|
||||
static bool needsQuote(llvm::StringRef Text) {
|
||||
|
|
Loading…
Reference in New Issue