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

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 22 08:12:27 PST 2018


Author: rksimon
Date: Thu Feb 22 08:12:27 2018
New Revision: 325802

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

Modified:
    clang-tools-extra/trunk/clangd/TUScheduler.cpp

Modified: clang-tools-extra/trunk/clangd/TUScheduler.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/TUScheduler.cpp?rev=325802&r1=325801&r2=325802&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/TUScheduler.cpp (original)
+++ clang-tools-extra/trunk/clangd/TUScheduler.cpp Thu Feb 22 08:12:27 2018
@@ -342,6 +342,7 @@ bool ASTWorker::shouldSkipHeadLocked() c
         return true; // Prefer later diagnostics.
     return false;
   }
+  llvm_unreachable("Unknown WantDiagnostics");
 }
 
 bool ASTWorker::blockUntilIdle(Deadline Timeout) const {




More information about the cfe-commits mailing list