mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Fix a build problem with xlc. The error message was
"../llvm-git/utils/TableGen/CodeGenSchedule.cpp", line 1594.12: 1540-0218 (S) The call does not match any parameter list for "operator+". "../llvm-git/include/llvm/ADT/STLExtras.h", line 130.1: 1540-1283 (I) "template <class _Iterator, class Func> llvm::operator+(mapped_iterator<_Iterator,Func>::difference_type, const mapped_iterator<_Iterator,Func> &)" is not a viable candidate. Patch by Kai. llvm-svn: 167311
This commit is contained in:
parent
ba57d98a50
commit
d404d4c18c
@ -1591,7 +1591,7 @@ unsigned CodeGenProcModel::getProcResourceIdx(Record *PRDef) const {
|
||||
PrintFatalError(PRDef->getLoc(), "ProcResource def is not included in "
|
||||
"the ProcResources list for " + ModelName);
|
||||
// Idx=0 is reserved for invalid.
|
||||
return 1 + PRPos - ProcResourceDefs.begin();
|
||||
return 1 + (PRPos - ProcResourceDefs.begin());
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
|
@ -1053,7 +1053,7 @@ void SubtargetEmitter::EmitSchedClassTables(SchedClassTables &SchedTables,
|
||||
continue;
|
||||
|
||||
std::vector<MCSchedClassDesc> &SCTab =
|
||||
SchedTables.ProcSchedClasses[1 + PI - SchedModels.procModelBegin()];
|
||||
SchedTables.ProcSchedClasses[1 + (PI - SchedModels.procModelBegin())];
|
||||
|
||||
OS << "\n// {Name, NumMicroOps, BeginGroup, EndGroup,"
|
||||
<< " WriteProcResIdx,#, WriteLatencyIdx,#, ReadAdvanceIdx,#}\n";
|
||||
|
Loading…
Reference in New Issue
Block a user