From: Duncan P. N. Exon Smith Date: Fri, 14 Mar 2014 16:29:21 +0000 (+0000) Subject: x86: Add missing break to getCallPreservedMask() X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=4fc4769a534d065b04bce0a70a12b38faa781880;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203943 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp index 4d5d8ed89fc..7f947353012 100644 --- a/lib/Target/X86/X86RegisterInfo.cpp +++ b/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)