diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-06-18 05:05:13 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-06-18 05:05:13 +0000 |
commit | 10d664fee72917960c8bf38cc2ec8e3b84924044 (patch) | |
tree | 6c0535956bcc25ed20dfde3f2063548a9ec34a82 /lib/Target/ARM | |
parent | 868e579be6c533836731500b47fc6d6d2e8e5314 (diff) | |
download | llvm-10d664fee72917960c8bf38cc2ec8e3b84924044.tar.gz llvm-10d664fee72917960c8bf38cc2ec8e3b84924044.tar.bz2 llvm-10d664fee72917960c8bf38cc2ec8e3b84924044.tar.xz |
Replace some assert(0)'s with llvm_unreachable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211141 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r-- | lib/Target/ARM/ARMInstrInfo.td | 2 | ||||
-rw-r--r-- | lib/Target/ARM/ARMMachineFunctionInfo.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMInstrInfo.td b/lib/Target/ARM/ARMInstrInfo.td index b44a19b01c..03eac2e0c8 100644 --- a/lib/Target/ARM/ARMInstrInfo.td +++ b/lib/Target/ARM/ARMInstrInfo.td @@ -493,7 +493,7 @@ def neon_vcvt_imm32 : Operand<i32> { // rot_imm: An integer that encodes a rotate amount. Must be 8, 16, or 24. def rot_imm_XFORM: SDNodeXForm<imm, [{ switch (N->getZExtValue()){ - default: assert(0); + default: llvm_unreachable(nullptr); case 0: return CurDAG->getTargetConstant(0, MVT::i32); case 8: return CurDAG->getTargetConstant(1, MVT::i32); case 16: return CurDAG->getTargetConstant(2, MVT::i32); diff --git a/lib/Target/ARM/ARMMachineFunctionInfo.h b/lib/Target/ARM/ARMMachineFunctionInfo.h index d7ec6eba94..7934761af2 100644 --- a/lib/Target/ARM/ARMMachineFunctionInfo.h +++ b/lib/Target/ARM/ARMMachineFunctionInfo.h @@ -220,7 +220,7 @@ public: void recordCPEClone(unsigned CPIdx, unsigned CPCloneIdx) { if (!CPEClones.insert(std::make_pair(CPCloneIdx, CPIdx)).second) - assert(0 && "Duplicate entries!"); + llvm_unreachable("Duplicate entries!"); } unsigned getOriginalCPIdx(unsigned CloneIdx) const { |