Replace abort with llvm_unreachable.

The former depended on header pollution to be found and doesn't fit the
LLVM style of error handling.
This commit is contained in:
Joerg Sonnenberger 2019-10-29 01:08:11 +01:00
parent 742043047c
commit 01f3a59fb3
1 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@
#define LLVM_ADT_HASHING_H
#include "llvm/Support/DataTypes.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/SwapByteOrder.h"
#include "llvm/Support/type_traits.h"
#include <algorithm>
@ -539,7 +540,7 @@ public:
// store types smaller than the buffer.
if (!store_and_advance(buffer_ptr, buffer_end, data,
partial_store_size))
abort();
llvm_unreachable("buffer smaller than stored type");
}
return buffer_ptr;
}