projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3d9ee1
)
Use less evil form of switch stmt.
author
Chris Lattner
<sabre@nondot.org>
Fri, 21 May 2010 18:02:42 +0000
(18:02 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 21 May 2010 18:02:42 +0000
(18:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104331
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86FloatingPointRegKill.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86FloatingPointRegKill.cpp
b/lib/Target/X86/X86FloatingPointRegKill.cpp
index 97a43f2b95de2cffd7a18eb58f5022583275cd71..d9c69f5f912325a564fd8ba69d80276a77cf1679 100644
(file)
--- 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;
+ }
}
}