diff options
author | Edwin Török <edwintorok@gmail.com> | 2009-07-11 13:10:19 +0000 |
---|---|---|
committer | Edwin Török <edwintorok@gmail.com> | 2009-07-11 13:10:19 +0000 |
commit | ced9ff8ea2fac344da91d925294817ad51f51e06 (patch) | |
tree | 948cd8ec42ea724903f0789140bdbfd4f11241dc /lib/VMCore/Constants.cpp | |
parent | 141d4c5676bcbfc3733eee26771505b39ba4ce99 (diff) | |
download | external_llvm-ced9ff8ea2fac344da91d925294817ad51f51e06.zip external_llvm-ced9ff8ea2fac344da91d925294817ad51f51e06.tar.gz external_llvm-ced9ff8ea2fac344da91d925294817ad51f51e06.tar.bz2 |
Convert more assert(0)+abort() -> LLVM_UNREACHABLE,
and abort()/exit() -> llvm_report_error().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75363 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Constants.cpp')
-rw-r--r-- | lib/VMCore/Constants.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index 5ee386d..78ef3a8 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -23,6 +23,7 @@ #include "llvm/ADT/StringMap.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/Debug.h" +#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/MathExtras.h" #include "llvm/System/Mutex.h" @@ -1120,8 +1121,7 @@ namespace llvm { template<class ConstantClass, class TypeClass> struct VISIBILITY_HIDDEN ConvertConstantType { static void convert(ConstantClass *OldC, const TypeClass *NewTy) { - assert(0 && "This type cannot be converted!\n"); - abort(); + LLVM_UNREACHABLE("This type cannot be converted!\n"); } }; |