projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cd273c
)
[ProfileData] Fix a warning
author
Kazu Hirata
<kazu@google.com>
Tue, 9 Nov 2021 18:34:00 +0000
(10:34 -0800)
committer
Kazu Hirata
<kazu@google.com>
Tue, 9 Nov 2021 18:34:00 +0000
(10:34 -0800)
This patch fixes:
llvm/lib/ProfileData/InstrProf.cpp:146:3: error: default label in
switch which covers all enumeration values
[-Werror,-Wcovered-switch-default]
llvm/lib/ProfileData/InstrProf.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/ProfileData/InstrProf.cpp
b/llvm/lib/ProfileData/InstrProf.cpp
index
de5ba33
..
6bd02ab
100644
(file)
--- 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.