]> granicus.if.org Git - llvm/commitdiff
Fix 'not all control paths return' warning on windows builds. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 10 Aug 2017 17:20:09 +0000 (17:20 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 10 Aug 2017 17:20:09 +0000 (17:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310631 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-rc/ResourceScriptToken.cpp

index 557a343b435869e2b60b9350594f3fad18a03940..ab46509b39423dedc0d10836f8401815da5af7d4 100644 (file)
@@ -215,9 +215,7 @@ Error Tokenizer::consumeToken(const Kind TokenKind) {
     assert(false && "Cannot consume an invalid token.");
   }
 
-  // This silences the compilers which cannot notice that the execution
-  // never reaches here.
-  assert(false);
+  llvm_unreachable("Unknown RCToken::Kind");
 }
 
 bool Tokenizer::willNowRead(StringRef FollowingChars) const {