[clang-tools-extra] r334122 - Fix MSVC 'not all control paths return a value' warning. NFCI.

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 6 12:31:40 PDT 2018


Author: rksimon
Date: Wed Jun  6 12:31:39 2018
New Revision: 334122

URL: http://llvm.org/viewvc/llvm-project?rev=334122&view=rev
Log:
Fix MSVC 'not all control paths return a value' warning. NFCI.

Modified:
    clang-tools-extra/trunk/clang-doc/tool/ClangDocMain.cpp

Modified: clang-tools-extra/trunk/clang-doc/tool/ClangDocMain.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-doc/tool/ClangDocMain.cpp?rev=334122&r1=334121&r2=334122&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-doc/tool/ClangDocMain.cpp (original)
+++ clang-tools-extra/trunk/clang-doc/tool/ClangDocMain.cpp Wed Jun  6 12:31:39 2018
@@ -139,6 +139,7 @@ std::string getFormatString(OutputFormat
   case yaml:
     return "yaml";
   }
+  llvm_unreachable("Unknown OutputFormatTy");
 }
 
 int main(int argc, const char **argv) {




More information about the cfe-commits mailing list