diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-01-10 16:47:17 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-01-10 16:47:17 +0000 |
commit | 2bd335470f8939782f3df7f6180282d3825d4f09 (patch) | |
tree | bd27d519e0b2bf705a91e00e029042feee20211d /lib/Target/PowerPC/InstPrinter | |
parent | 6c0366cb2588ae49ef6e2f892db2099d41d85391 (diff) | |
download | llvm-2bd335470f8939782f3df7f6180282d3825d4f09.tar.gz llvm-2bd335470f8939782f3df7f6180282d3825d4f09.tar.bz2 llvm-2bd335470f8939782f3df7f6180282d3825d4f09.tar.xz |
Remove unnecessary default cases in switches that cover all enum values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147855 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/InstPrinter')
-rw-r--r-- | lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp b/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp index b6a08354a2..7a8739ab1a 100644 --- a/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp +++ b/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp @@ -94,7 +94,6 @@ void PPCInstPrinter::printPredicateOperand(const MCInst *MI, unsigned OpNo, unsigned Code = MI->getOperand(OpNo).getImm(); if (StringRef(Modifier) == "cc") { switch ((PPC::Predicate)Code) { - default: assert(0 && "Invalid predicate"); case PPC::PRED_ALWAYS: return; // Don't print anything for always. case PPC::PRED_LT: O << "lt"; return; case PPC::PRED_LE: O << "le"; return; |