Skip to content

Commit

Permalink
[llvm-profdata] Fix unhandled enumeration values warning
Browse files Browse the repository at this point in the history
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
  • Loading branch information
copperlist committed Nov 18, 2015
1 parent 4918b66 commit 9dcdf0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/llvm-profdata/llvm-profdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 9dcdf0d

Please sign in to comment.