From: Chris Lattner Date: Fri, 21 May 2010 18:02:42 +0000 (+0000) Subject: Use less evil form of switch stmt. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d596c90030fc7a4dbfdfcab32ce0eae10171018e;p=oota-llvm.git Use less evil form of switch stmt. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104331 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86FloatingPointRegKill.cpp b/lib/Target/X86/X86FloatingPointRegKill.cpp index 97a43f2b95d..d9c69f5f912 100644 --- a/lib/Target/X86/X86FloatingPointRegKill.cpp +++ b/lib/Target/X86/X86FloatingPointRegKill.cpp @@ -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; + } } }