[llvm-commits] [llvm] r156780 - /llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
David Blaikie
dblaikie at gmail.com
Mon May 14 14:48:19 PDT 2012
Author: dblaikie
Date: Mon May 14 16:48:19 2012
New Revision: 156780
URL: http://llvm.org/viewvc/llvm-project?rev=156780&view=rev
Log:
Fix use of uninitialized variable.
Found by GCC's maybe-uninitialized.
Modified:
llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp?rev=156780&r1=156779&r2=156780&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp Mon May 14 16:48:19 2012
@@ -2024,7 +2024,7 @@
ARMCC::CondCodes CC = (ARMCC::CondCodes)OperandsToUpdate[i]->getImm();
ARMCC::CondCodes NewCC;
switch (CC) {
- default: break;
+ default: llvm_unreachable("only expecting less/greater comparisons here");
case ARMCC::GE: NewCC = ARMCC::LE; break;
case ARMCC::LT: NewCC = ARMCC::GT; break;
case ARMCC::GT: NewCC = ARMCC::LT; break;
More information about the llvm-commits
mailing list