[llvm] r300344 - [FunctionImport] assert(false) -> llvm_unreachable(). NFCI.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 14 10:22:03 PDT 2017


Author: davide
Date: Fri Apr 14 12:22:02 2017
New Revision: 300344

URL: http://llvm.org/viewvc/llvm-project?rev=300344&view=rev
Log:
[FunctionImport] assert(false) -> llvm_unreachable(). NFCI.

Modified:
    llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp

Modified: llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp?rev=300344&r1=300343&r2=300344&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp Fri Apr 14 12:22:02 2017
@@ -557,7 +557,7 @@ void llvm::thinLTOResolveWeakForLinkerMo
       // 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) {




More information about the llvm-commits mailing list