assert(0) -> LLVM_UNREACHABLE.
[oota-llvm.git] / lib / Transforms / Utils / ValueMapper.cpp
index 21b3a220c30a841f8c42e93d0c3c6932173ed475..951d24f121ffd9bb19adb2f28544cb8008662c24 100644 (file)
@@ -20,6 +20,7 @@
 #include "llvm/LLVMContext.h"
 #include "llvm/MDNode.h"
 #include "llvm/ADT/SmallVector.h"
+#include "llvm/Support/ErrorHandling.h"
 using namespace llvm;
 
 Value *llvm::MapValue(const Value *V, ValueMapTy &VM, LLVMContext *Context) {
@@ -126,7 +127,7 @@ Value *llvm::MapValue(const Value *V, ValueMapTy &VM, LLVMContext *Context) {
       return VM[V] = C;
 
     } else {
-      assert(0 && "Unknown type of constant!");
+      LLVM_UNREACHABLE("Unknown type of constant!");
     }
   }