]> granicus.if.org Git - llvm/commitdiff
[FunctionImport] assert(false) -> llvm_unreachable(). NFCI.
authorDavide Italiano <davide@freebsd.org>
Fri, 14 Apr 2017 17:22:02 +0000 (17:22 +0000)
committerDavide Italiano <davide@freebsd.org>
Fri, 14 Apr 2017 17:22:02 +0000 (17:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300344 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/FunctionImport.cpp

index d1bf6e3553ace07d2869a7e3aee07ab282a0ecc8..d66411f04cc4ab46fd9a8d70291e650c34bda0da 100644 (file)
@@ -557,7 +557,7 @@ void llvm::thinLTOResolveWeakForLinkerModule(
       // need to add support here for creating either a function or
       // variable declaration, and return the new GlobalValue* for
       // the caller to use.
-      assert(false && "Expected function or variable");
+      llvm_unreachable("Expected function or variable");
   };
 
   auto updateLinkage = [&](GlobalValue &GV) {