This is not actually unreachable, so don't use llvm_unreachable for it. Since
authorNick Lewycky <nicholas@mxc.ca>
Fri, 19 Aug 2011 20:14:27 +0000 (20:14 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 19 Aug 2011 20:14:27 +0000 (20:14 +0000)
the intent seems to be to terminate even in Release builds, just use abort()
directly.

If program flow ever reaches a __builtin_unreachable (which llvm_unreachable is
#define'd to on newer GCCs) then the program is undefined.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138068 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp

index 7119769a2f010d27fb0e06145233b7574a61eaa4..7928bc78b7bd566fe2b740c0b4bbc55478cf1bce 100644 (file)
@@ -43,8 +43,9 @@ void DAGTypeLegalizer::ScalarizeVectorResult(SDNode *N, unsigned ResNo) {
     dbgs() << "ScalarizeVectorResult #" << ResNo << ": ";
     N->dump(&DAG);
     dbgs() << "\n";
+    dbgs() << "Do not know how to scalarize the result of this operator!\n";
 #endif
-    llvm_unreachable("Do not know how to scalarize the result of this operator!");
+    abort();
 
   case ISD::BITCAST:           R = ScalarizeVecRes_BITCAST(N); break;
   case ISD::BUILD_VECTOR:      R = N->getOperand(0); break;