summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-08-19 20:14:27 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-08-19 20:14:27 +0000
commit3f73184d90ce1736fe0755f5dd47b69ef27ddd07 (patch)
treeb69243c674ce9a57ea3c764bd10036a90861e341
parentb527f4498adc1116fb1b38c692703a216afd6299 (diff)
downloadbcm5719-llvm-3f73184d90ce1736fe0755f5dd47b69ef27ddd07.tar.gz
bcm5719-llvm-3f73184d90ce1736fe0755f5dd47b69ef27ddd07.zip
This is not actually unreachable, so don't use llvm_unreachable for it. Since
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. llvm-svn: 138068
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
index 7119769a2f0..7928bc78b7b 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
@@ -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;
OpenPOWER on IntegriCloud