x86: getCalleeSavedRegs() would crash on 0 (so don't default to it)
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 14 Mar 2014 15:38:12 +0000 (15:38 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 14 Mar 2014 15:38:12 +0000 (15:38 +0000)
commit4baea39ecf5f364e5f5010f6e22c8e98ad3e8bd5
tree02586ef94ca2cda4262371bfa8ca2a94a26957d0
parent80f27b0bc81869f2321f614c703a0dbd391e1f3e
x86: getCalleeSavedRegs() would crash on 0 (so don't default to it)

The current logic assumes that MF is not 0.  Assert that it isn't, and
remove the default of 0 from the header.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203934 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86RegisterInfo.cpp
lib/Target/X86/X86RegisterInfo.h