diff --git a/llvm/lib/Target/XCore/XCoreLowerThreadLocal.cpp b/llvm/lib/Target/XCore/XCoreLowerThreadLocal.cpp index 3c90a54cc942..7340b2f96667 100644 --- a/llvm/lib/Target/XCore/XCoreLowerThreadLocal.cpp +++ b/llvm/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) {