[ProfileData] Fix a warning

This patch fixes:

  llvm/lib/ProfileData/InstrProf.cpp:146:3: error: default label in
  switch which covers all enumeration values
  [-Werror,-Wcovered-switch-default]
This commit is contained in:
Kazu Hirata 2021-11-09 10:34:00 -08:00
parent 7cd273c339
commit a340d47419
1 changed files with 0 additions and 3 deletions

View File

@ -143,9 +143,6 @@ static std::string getInstrProfErrString(instrprof_error Err,
OS << "profile uses zlib compression but the profile reader was built " OS << "profile uses zlib compression but the profile reader was built "
"without zlib support"; "without zlib support";
break; break;
default:
llvm_unreachable("A value of instrprof_error has no message.");
break;
} }
// If optional error message is not empty, append it to the message. // If optional error message is not empty, append it to the message.