summaryrefslogtreecommitdiff
path: root/include/llvm/MDNode.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/MDNode.h')
-rw-r--r--include/llvm/MDNode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/MDNode.h b/include/llvm/MDNode.h
index d632e4ea4a..dcda5d05eb 100644
--- a/include/llvm/MDNode.h
+++ b/include/llvm/MDNode.h
@@ -25,6 +25,7 @@
#include "llvm/Type.h"
#include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/SmallVector.h"
+#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/ValueHandle.h"
namespace llvm {
@@ -119,8 +120,7 @@ public:
virtual void destroyConstant();
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U) {
- assert(0 && "This should never be called because MDNodes have no ops");
- abort();
+ LLVM_UNREACHABLE("This should never be called because MDNodes have no ops");
}
/// Methods for support type inquiry through isa, cast, and dyn_cast: