diff --git a/lib/Transforms/IPO/FunctionImport.cpp b/lib/Transforms/IPO/FunctionImport.cpp index d1bf6e3553a..d66411f04cc 100644 --- a/lib/Transforms/IPO/FunctionImport.cpp +++ b/lib/Transforms/IPO/FunctionImport.cpp @@ -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) {