diff --git a/lib/Target/XCore/XCoreLowerThreadLocal.cpp b/lib/Target/XCore/XCoreLowerThreadLocal.cpp index 3c90a54cc94..7340b2f9666 100644 --- a/lib/Target/XCore/XCoreLowerThreadLocal.cpp +++ b/lib/Target/XCore/XCoreLowerThreadLocal.cpp @@ -120,9 +120,8 @@ createReplacementInstr(ConstantExpr *CE, Instruction *Instr) { CE->getOperand(0), CE->getType(), CE->getName())); default: - assert(0 && "Unhandled constant expression!\n"); + llvm_unreachable("Unhandled constant expression!\n"); } - llvm_unreachable("Unhandled constant expression!\n"); } static bool replaceConstantExprOp(ConstantExpr *CE) {