Silencing a warning about control flow reaching the end of a non-void function.
authorAaron Ballman <aaron@aaronballman.com>
Mon, 9 Sep 2013 13:22:45 +0000 (13:22 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 9 Sep 2013 13:22:45 +0000 (13:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190304 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/XCore/XCoreLowerThreadLocal.cpp

index 5a832825148c77eb5dba002df8f1ce2411ad1780..3c90a54cc942442df813e39eda24ca6438ba1c92 100644 (file)
@@ -122,6 +122,7 @@ createReplacementInstr(ConstantExpr *CE, Instruction *Instr) {
     default:
       assert(0 && "Unhandled constant expression!\n");
   }
+  llvm_unreachable("Unhandled constant expression!\n");
 }
 
 static bool replaceConstantExprOp(ConstantExpr *CE) {