[llvm] r254093 - [SCCP] More informative message if we don't know how to handle a terminator.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 25 13:03:36 PST 2015


Author: davide
Date: Wed Nov 25 15:03:36 2015
New Revision: 254093

URL: http://llvm.org/viewvc/llvm-project?rev=254093&view=rev
Log:
[SCCP] More informative message if we don't know how to handle a terminator.

Modified:
    llvm/trunk/lib/Transforms/Scalar/SCCP.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/SCCP.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SCCP.cpp?rev=254093&r1=254092&r2=254093&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SCCP.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SCCP.cpp Wed Nov 25 15:03:36 2015
@@ -636,7 +636,7 @@ bool SCCPSolver::isEdgeFeasible(BasicBlo
 #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




More information about the llvm-commits mailing list