From 7b80d9233a0a69c47d1e5ebe647951349ed166e8 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Mon, 9 Sep 2013 14:17:30 +0000 Subject: A better way to silence the warning in MSVC (replaces r190304). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190308 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/XCore/XCoreLowerThreadLocal.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Target/XCore/XCoreLowerThreadLocal.cpp b/lib/Target/XCore/XCoreLowerThreadLocal.cpp index 3c90a54..7340b2f 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) { -- cgit v1.1