From b2d95f0d2e6696540ba7a4aa8325fb6adf1194cf Mon Sep 17 00:00:00 2001 From: Nathan Slingerland Date: Wed, 18 Nov 2015 00:52:45 +0000 Subject: [llvm-profdata] Fix unhandled enumeration values warning 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) { ^ llvm-svn: 253413 --- llvm/tools/llvm-profdata/llvm-profdata.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/tools/llvm-profdata/llvm-profdata.cpp') diff --git a/llvm/tools/llvm-profdata/llvm-profdata.cpp b/llvm/tools/llvm-profdata/llvm-profdata.cpp index 52488af1c91..9ce0485fb13 100644 --- a/llvm/tools/llvm-profdata/llvm-profdata.cpp +++ b/llvm/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; } } -- cgit v1.2.3