Use less evil form of switch stmt.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104331 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-05-21 18:02:42 +00:00
parent d3d9ee1a4d
commit d596c90030

View File

@ -71,11 +71,13 @@ static bool ContainsFPStackCode(MachineBasicBlock *MBB, unsigned SSELevel,
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;
}
}
}