[SCCP] More informative message if we don't know how to handle a terminator.
[oota-llvm.git] / lib / Transforms / Scalar / SCCP.cpp
index 4362030b23180c52fb8783189e6915f880ea9485..52281d4e04463fae73eaf7a9651206c6e969c18f 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