mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 23:18:51 +00:00
X86: Move a non-null assert to before the pointer is dereferenced
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285975 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ba7c327ede
commit
0425b29d7b
@ -264,13 +264,14 @@ X86RegisterInfo::getRegPressureLimit(const TargetRegisterClass *RC,
|
||||
|
||||
const MCPhysReg *
|
||||
X86RegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const {
|
||||
assert(MF && "MachineFunction required");
|
||||
|
||||
const X86Subtarget &Subtarget = MF->getSubtarget<X86Subtarget>();
|
||||
bool HasSSE = Subtarget.hasSSE1();
|
||||
bool HasAVX = Subtarget.hasAVX();
|
||||
bool HasAVX512 = Subtarget.hasAVX512();
|
||||
bool CallsEHReturn = MF->getMMI().callsEHReturn();
|
||||
|
||||
assert(MF && "MachineFunction required");
|
||||
switch (MF->getFunction()->getCallingConv()) {
|
||||
case CallingConv::GHC:
|
||||
case CallingConv::HiPE:
|
||||
|
Loading…
Reference in New Issue
Block a user