OSDN Git Service

[SCCP] More informative message if we don't know how to handle a terminator.
authorDavide Italiano <davide@freebsd.org>
Wed, 25 Nov 2015 21:03:36 +0000 (21:03 +0000)
committerDavide Italiano <davide@freebsd.org>
Wed, 25 Nov 2015 21:03:36 +0000 (21:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254093 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/SCCP.cpp

index 4362030..52281d4 100644 (file)
@@ -636,7 +636,7 @@ bool SCCPSolver::isEdgeFeasible(BasicBlock *From, BasicBlock *To) {
 #ifndef NDEBUG
   dbgs() << "Unknown terminator instruction: " << *TI << '\n';
 #endif
-  llvm_unreachable(nullptr);
+  llvm_unreachable("SCCP: Don't know how to handle this terminator!");
 }
 
 // visit Implementations - Something changed in this instruction, either an