[x32] Mark RBX as reserved when EBX is the base pointer.

This should have gone into r230334.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230339 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael Kuperstein 2015-02-24 16:13:16 +00:00
parent 269510242b
commit 09d756a7e0

View File

@ -355,7 +355,9 @@ BitVector X86RegisterInfo::getReservedRegs(const MachineFunction &MF) const {
"Stack realignment in presence of dynamic allocas is not supported with"
"this calling convention.");
for (MCSubRegIterator I(getBaseRegister(), this, /*IncludeSelf=*/true);
unsigned BasePtr = getX86SubSuperRegister(getBaseRegister(), MVT::i64,
false);
for (MCSubRegIterator I(BasePtr, this, /*IncludeSelf=*/true);
I.isValid(); ++I)
Reserved.set(*I);
}