diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-02-07 02:50:20 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-02-07 02:50:20 +0000 |
commit | bc2198133a1836598b54b943420748e75d5dea94 (patch) | |
tree | b358665906cdd200c0e87842ca112a0518742907 /lib/Target/PowerPC/PPCMCInstLower.cpp | |
parent | c5de7fea7b71b2b78f761512dc489c804ec6c18c (diff) | |
download | external_llvm-bc2198133a1836598b54b943420748e75d5dea94.zip external_llvm-bc2198133a1836598b54b943420748e75d5dea94.tar.gz external_llvm-bc2198133a1836598b54b943420748e75d5dea94.tar.bz2 |
Convert assert(0) to llvm_unreachable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149961 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCMCInstLower.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCMCInstLower.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCMCInstLower.cpp b/lib/Target/PowerPC/PPCMCInstLower.cpp index ff6ebba..276edcb 100644 --- a/lib/Target/PowerPC/PPCMCInstLower.cpp +++ b/lib/Target/PowerPC/PPCMCInstLower.cpp @@ -140,7 +140,7 @@ void llvm::LowerPPCMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, switch (MO.getType()) { default: MI->dump(); - assert(0 && "unknown operand type"); + llvm_unreachable("unknown operand type"); case MachineOperand::MO_Register: assert(!MO.getSubReg() && "Subregs should be eliminated!"); MCOp = MCOperand::CreateReg(MO.getReg()); |