[llvm-commits] [llvm] r104331 - /llvm/trunk/lib/Target/X86/X86FloatingPointRegKill.cpp
Chris Lattner
sabre at nondot.org
Fri May 21 11:02:42 PDT 2010
Author: lattner
Date: Fri May 21 13:02:42 2010
New Revision: 104331
URL: http://llvm.org/viewvc/llvm-project?rev=104331&view=rev
Log:
Use less evil form of switch stmt.
Modified:
llvm/trunk/lib/Target/X86/X86FloatingPointRegKill.cpp
Modified: llvm/trunk/lib/Target/X86/X86FloatingPointRegKill.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FloatingPointRegKill.cpp?rev=104331&r1=104330&r2=104331&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FloatingPointRegKill.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FloatingPointRegKill.cpp Fri May 21 13:02:42 2010
@@ -71,11 +71,13 @@
const TargetRegisterClass *RegClass =
MRI.getRegClass(I->getOperand(op).getReg());
- switch (RegClass->getID())
+ switch (RegClass->getID()) {
+ default: break;
case X86::RFP32RegClassID:
case X86::RFP64RegClassID:
case X86::RFP80RegClassID:
- return true;
+ return true;
+ }
}
}
More information about the llvm-commits
mailing list