diff --git a/llvm/lib/ProfileData/InstrProf.cpp b/llvm/lib/ProfileData/InstrProf.cpp index de5ba33b6ad4b1..6bd02abfe1e5db 100644 --- a/llvm/lib/ProfileData/InstrProf.cpp +++ b/llvm/lib/ProfileData/InstrProf.cpp @@ -143,9 +143,6 @@ static std::string getInstrProfErrString(instrprof_error Err, OS << "profile uses zlib compression but the profile reader was built " "without zlib support"; 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.