Convert assert(0) to llvm_unreachable
[oota-llvm.git] / lib / Target / PowerPC / PPCISelLowering.cpp
index ddfb9127beaf80e8c96e9f7be2e81402cc8e285c..1231afc116a33cebecdc0aaf1b2746c4c080d1bf 100644 (file)
@@ -4578,8 +4578,7 @@ void PPCTargetLowering::ReplaceNodeResults(SDNode *N,
   DebugLoc dl = N->getDebugLoc();
   switch (N->getOpcode()) {
   default:
-    assert(false && "Do not know how to custom type legalize this operation!");
-    return;
+    llvm_unreachable("Do not know how to custom type legalize this operation!");
   case ISD::VAARG: {
     if (!TM.getSubtarget<PPCSubtarget>().isSVR4ABI()
         || TM.getSubtarget<PPCSubtarget>().isPPC64())