From 762cf5cbf51fac82e7af14f19d45e923d079e53f Mon Sep 17 00:00:00 2001 From: Michael Gottesman Date: Sat, 6 Jul 2013 02:39:51 +0000 Subject: [PATCH] [llvm-ar] Added llvm_unreachable to quiet -Wreturn-type warnings. llvm-svn: 185751 --- tools/llvm-ar/llvm-ar.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp index 515f8991e84..a9297eb0575 100644 --- a/tools/llvm-ar/llvm-ar.cpp +++ b/tools/llvm-ar/llvm-ar.cpp @@ -655,6 +655,8 @@ bool shouldCreateArchive(ArchiveOperation Op) { case ReplaceOrInsert: return true; } + + llvm_unreachable("Missing entry in covered switch."); } // main - main program for llvm-ar .. see comments in the code