summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86RegisterInfo.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-03-14 16:29:21 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-03-14 16:29:21 +0000
commita824862664bdec28d120a046b4cad58070295a1d (patch)
tree789e1cf17767cbd76ed0ab9ae3dae921ffa9e281 /llvm/lib/Target/X86/X86RegisterInfo.cpp
parentc0768e81d38ca247fb2967bf8e197aa001c569aa (diff)
downloadbcm5719-llvm-a824862664bdec28d120a046b4cad58070295a1d.tar.gz
bcm5719-llvm-a824862664bdec28d120a046b4cad58070295a1d.zip
x86: Add missing break to getCallPreservedMask()
This change brings getCallPreservedMask()'s logic in line with getCalleeSavedRegs(). While this changes the control flow slightly, the change is not currently observable. is64Bit must be false to get to the accidental fallthrough, but the case that we fall into (coldcc) does nothing unless is64Bit is true. llvm-svn: 203943
Diffstat (limited to 'llvm/lib/Target/X86/X86RegisterInfo.cpp')
-rw-r--r--llvm/lib/Target/X86/X86RegisterInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86RegisterInfo.cpp b/llvm/lib/Target/X86/X86RegisterInfo.cpp
index 4d5d8ed89fc..7f947353012 100644
--- a/llvm/lib/Target/X86/X86RegisterInfo.cpp
+++ b/llvm/lib/Target/X86/X86RegisterInfo.cpp
@@ -316,6 +316,7 @@ X86RegisterInfo::getCallPreservedMask(CallingConv::ID CC) const {
return CSR_64_Intel_OCL_BI_AVX_RegMask;
if (!HasAVX && !IsWin64 && Is64Bit)
return CSR_64_Intel_OCL_BI_RegMask;
+ break;
}
case CallingConv::Cold:
if (Is64Bit)
OpenPOWER on IntegriCloud