commit | 120b4d0945202912006d86ebb49ecd4dd2775022 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Fri May 21 18:02:42 2010 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Fri May 21 18:02:42 2010 +0000 |
tree | 2466045de89e8ed7ee2f14d07ba9dd9f0482242a | |
parent | 9562119a452f733ee2e874760f234923f930e006 [diff] [blame] |
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 97a43f2..d9c69f5 100644 --- a/lib/Target/X86/X86FloatingPointRegKill.cpp +++ b/lib/Target/X86/X86FloatingPointRegKill.cpp
@@ -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; + } } }