[llvm] r253005 - [lib/Linker] Convert assert(false) to llvm_unreachable().
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 12 18:16:51 PST 2015
Author: davide
Date: Thu Nov 12 20:16:51 2015
New Revision: 253005
URL: http://llvm.org/viewvc/llvm-project?rev=253005&view=rev
Log:
[lib/Linker] Convert assert(false) to llvm_unreachable().
Modified:
llvm/trunk/lib/Linker/LinkModules.cpp
Modified: llvm/trunk/lib/Linker/LinkModules.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Linker/LinkModules.cpp?rev=253005&r1=253004&r2=253005&view=diff
==============================================================================
--- llvm/trunk/lib/Linker/LinkModules.cpp (original)
+++ llvm/trunk/lib/Linker/LinkModules.cpp Thu Nov 12 20:16:51 2015
@@ -777,7 +777,7 @@ GlobalValue::LinkageTypes ModuleLinker::
// since it would cause global constructors/destructors to be
// executed multiple times. This should have already been handled
// by linkGlobalValueProto.
- assert(false && "Cannot import appending linkage variable");
+ llvm_unreachable("Cannot import appending linkage variable");
case GlobalValue::InternalLinkage:
case GlobalValue::PrivateLinkage:
More information about the llvm-commits
mailing list