diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-10-18 14:38:48 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-10-18 14:38:48 +0000 |
commit | 17e6e44298d8da4cd97ba0be66225cdad4670276 (patch) | |
tree | f41942b47af09d44ac0ee4f6987491726795ddba /lib/Transforms/Utils/PromoteMemoryToRegister.cpp | |
parent | 698f96f7c81e45292ae4f5d76b8e06c88a88a71f (diff) |
Correction to allow compilation with Visual C++.
Patch contributed by Morten Ofstad. Thanks Morten!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/PromoteMemoryToRegister.cpp')
-rw-r--r-- | lib/Transforms/Utils/PromoteMemoryToRegister.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index 3311bd1c20..213b3d742f 100644 --- a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp +++ b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp @@ -220,8 +220,8 @@ void PromoteMem2Reg::run() { // (unspecified) ordering of basic blocks in the dominance frontier, // which would give PHI nodes non-determinstic subscripts. Fix this by // processing blocks in order of the occurance in the function. - for (DominanceFrontier::DomSetType::iterator P = S.begin(),PE = S.end(); - P != PE; ++P) + for (DominanceFrontier::DomSetType::const_iterator P = S.begin(), + PE = S.end(); P != PE; ++P) DFBlocks.push_back(BBNumbers.getNumber(*P)); // Sort by which the block ordering in the function. |