XCore: Unbreak C++11 build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196089 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2013-12-02 10:29:26 +00:00
parent 41d4ed4ed0
commit ee97bbfd5c

View File

@ -121,13 +121,13 @@ static void GetSpillList(SmallVectorImpl<std::pair<unsigned,int> > &SpillList,
int LRSpillOffset = fetchLR? MFI->getObjectOffset(XFI->getLRSpillSlot()) : 0;
int FPSpillOffset = fetchFP? MFI->getObjectOffset(XFI->getFPSpillSlot()) : 0;
if (fetchLR && fetchFP && LRSpillOffset > FPSpillOffset) {
SpillList.push_back(std::make_pair<unsigned,int>(XCore::LR,LRSpillOffset));
SpillList.push_back(std::pair<unsigned, int>(XCore::LR, LRSpillOffset));
fetchLR = false;
}
if (fetchFP)
SpillList.push_back(std::make_pair<unsigned,int>(FramePtr, FPSpillOffset));
SpillList.push_back(std::pair<unsigned, int>(FramePtr, FPSpillOffset));
if (fetchLR)
SpillList.push_back(std::make_pair<unsigned,int>(XCore::LR,LRSpillOffset));
SpillList.push_back(std::pair<unsigned, int>(XCore::LR, LRSpillOffset));
}