mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-23 01:25:32 +00:00
Use SmallVectorImpl instead of SmallVector for iterators and references to avoid specifying the vector size unnecessarily.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185512 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -388,7 +388,7 @@ findSuitableFreeRegister(RegRefIter RegRefBegin,
|
||||
continue;
|
||||
// If NewReg overlaps any of the forbidden registers, we can't use it.
|
||||
bool Forbidden = false;
|
||||
for (SmallVector<unsigned, 2>::iterator it = Forbid.begin(),
|
||||
for (SmallVectorImpl<unsigned>::iterator it = Forbid.begin(),
|
||||
ite = Forbid.end(); it != ite; ++it)
|
||||
if (TRI->regsOverlap(NewReg, *it)) {
|
||||
Forbidden = true;
|
||||
|
Reference in New Issue
Block a user