From 83d81784df07834783f44294766e340f37f7873b Mon Sep 17 00:00:00 2001
From: Aaron Ballman <aaron@aaronballman.com>
Date: Mon, 9 Sep 2013 14:17:30 +0000
Subject: [PATCH] A better way to silence the warning in MSVC (replaces
 r190304).

llvm-svn: 190308
---
 llvm/lib/Target/XCore/XCoreLowerThreadLocal.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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) {