diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-02-05 07:21:30 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-02-05 07:21:30 +0000 |
commit | 655b8de7b2ab773a977e0c524307e71354d8af29 (patch) | |
tree | a1b12392bfabcef3a3b089fc53936bacc6e79dd0 /utils/TableGen/CodeGenRegisters.h | |
parent | 0b2500c504156c45cd71817a9ef6749b6cde5703 (diff) | |
download | llvm-655b8de7b2ab773a977e0c524307e71354d8af29.tar.gz llvm-655b8de7b2ab773a977e0c524307e71354d8af29.tar.bz2 llvm-655b8de7b2ab773a977e0c524307e71354d8af29.tar.xz |
Convert assert(0) to llvm_unreachable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149814 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenRegisters.h')
-rw-r--r-- | utils/TableGen/CodeGenRegisters.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/CodeGenRegisters.h b/utils/TableGen/CodeGenRegisters.h index 5fc0f65739..beaa67830e 100644 --- a/utils/TableGen/CodeGenRegisters.h +++ b/utils/TableGen/CodeGenRegisters.h @@ -22,6 +22,7 @@ #include "llvm/ADT/BitVector.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/SetVector.h" +#include "llvm/Support/ErrorHandling.h" #include <cstdlib> #include <map> #include <string> @@ -192,8 +193,7 @@ namespace llvm { MVT::SimpleValueType getValueTypeNum(unsigned VTNum) const { if (VTNum < VTs.size()) return VTs[VTNum]; - assert(0 && "VTNum greater than number of ValueTypes in RegClass!"); - abort(); + llvm_unreachable("VTNum greater than number of ValueTypes in RegClass!"); } // Return true if this this class contains the register. |