summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/XCore/XCoreLowerThreadLocal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/XCore/XCoreLowerThreadLocal.cpp')
-rw-r--r--llvm/lib/Target/XCore/XCoreLowerThreadLocal.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/XCore/XCoreLowerThreadLocal.cpp b/llvm/lib/Target/XCore/XCoreLowerThreadLocal.cpp
index 3c90a54cc94..7340b2f9666 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) {
OpenPOWER on IntegriCloud