diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-07-03 05:11:49 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-07-03 05:11:49 +0000 |
commit | f22fd3f7b557a967b1edc1fa9ae770006a39e97c (patch) | |
tree | 2adb341c05cd266b848277bc567e279836a4c95d /lib/CodeGen/LiveVariables.cpp | |
parent | d0a3916e430201d0179c723e4ebdd9bf4f0ee02b (diff) | |
download | llvm-f22fd3f7b557a967b1edc1fa9ae770006a39e97c.tar.gz llvm-f22fd3f7b557a967b1edc1fa9ae770006a39e97c.tar.bz2 llvm-f22fd3f7b557a967b1edc1fa9ae770006a39e97c.tar.xz |
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
Diffstat (limited to 'lib/CodeGen/LiveVariables.cpp')
-rw-r--r-- | lib/CodeGen/LiveVariables.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LiveVariables.cpp b/lib/CodeGen/LiveVariables.cpp index 4e83fc833d..6f75700f13 100644 --- a/lib/CodeGen/LiveVariables.cpp +++ b/lib/CodeGen/LiveVariables.cpp @@ -609,9 +609,9 @@ bool LiveVariables::runOnMachineFunction(MachineFunction &mf) { // if they have PHI nodes, and if so, we simulate an assignment at the end // of the current block. if (!PHIVarInfo[MBB->getNumber()].empty()) { - SmallVector<unsigned, 4>& VarInfoVec = PHIVarInfo[MBB->getNumber()]; + SmallVectorImpl<unsigned> &VarInfoVec = PHIVarInfo[MBB->getNumber()]; - for (SmallVector<unsigned, 4>::iterator I = VarInfoVec.begin(), + for (SmallVectorImpl<unsigned>::iterator I = VarInfoVec.begin(), E = VarInfoVec.end(); I != E; ++I) // Mark it alive only in the block we are representing. MarkVirtRegAliveInBlock(getVarInfo(*I),MRI->getVRegDef(*I)->getParent(), |