[llvm] r184758 - PPC: Remove default case from fully covered switch.
Benjamin Kramer
benny.kra at googlemail.com
Mon Jun 24 10:03:25 PDT 2013
Author: d0k
Date: Mon Jun 24 12:03:25 2013
New Revision: 184758
URL: http://llvm.org/viewvc/llvm-project?rev=184758&view=rev
Log:
PPC: Remove default case from fully covered switch.
Modified:
llvm/trunk/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
Modified: llvm/trunk/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp?rev=184758&r1=184757&r2=184758&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp Mon Jun 24 12:03:25 2013
@@ -130,9 +130,8 @@ void PPCInstPrinter::printPredicateOpera
case PPC::PRED_NU:
O << "nu";
return;
- default:
- llvm_unreachable("Invalid predicate code");
}
+ llvm_unreachable("Invalid predicate code");
}
if (StringRef(Modifier) == "pm") {
@@ -166,9 +165,8 @@ void PPCInstPrinter::printPredicateOpera
case PPC::PRED_NU_PLUS:
O << "+";
return;
- default:
- llvm_unreachable("Invalid predicate code");
}
+ llvm_unreachable("Invalid predicate code");
}
assert(StringRef(Modifier) == "reg" &&
More information about the llvm-commits
mailing list