projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4918b66
)
[llvm-profdata] Fix unhandled enumeration values warning
author
Nathan Slingerland
<slingn@gmail.com>
Wed, 18 Nov 2015 00:52:45 +0000
(
00:52
+0000)
committer
Nathan Slingerland
<slingn@gmail.com>
Wed, 18 Nov 2015 00:52:45 +0000
(
00:52
+0000)
Fix this:
llvm/tools/llvm-profdata/llvm-profdata.cpp:78:15: warning: 12 enumeration values not handled in switch: 'success', 'eof', 'unrecognized_format'... [-Wswitch]
switch (instrError) {
^
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253413
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-profdata/llvm-profdata.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-profdata/llvm-profdata.cpp
b/tools/llvm-profdata/llvm-profdata.cpp
index
52488af
..
9ce0485
100644
(file)
--- a/
tools/llvm-profdata/llvm-profdata.cpp
+++ b/
tools/llvm-profdata/llvm-profdata.cpp
@@
-82,6
+82,8
@@
static void handleMergeWriterError(std::error_code &Error,
Hint = "Make sure that all profile data to be merged is generated " \
"from the same binary.";
break;
+ default:
+ break;
}
}