Skip to content

Commit a340d47

Browse files
[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]
1 parent 7cd273c commit a340d47

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/lib/ProfileData/InstrProf.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@ static std::string getInstrProfErrString(instrprof_error Err,
143143
OS << "profile uses zlib compression but the profile reader was built "
144144
"without zlib support";
145145
break;
146-
default:
147-
llvm_unreachable("A value of instrprof_error has no message.");
148-
break;
149146
}
150147

151148
// If optional error message is not empty, append it to the message.

0 commit comments

Comments
 (0)