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:
Simon Pilgrim 2020-05-19 13:16:24 +01:00
parent 0fc1f2b7cd
commit 6e99199419
1 changed files with 1 additions and 0 deletions

View File

@ -225,6 +225,7 @@ private:
case Metric::Distribution:
return "d";
}
llvm_unreachable("Unknown Metric::MetricType enum");
}
static bool needsQuote(llvm::StringRef Text) {