summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-10-18 14:38:48 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-10-18 14:38:48 +0000
commitce0783318befe32b28198671c8d488e43b3c6e53 (patch)
tree12a687c8c9506ba871eb0f26473b99b168bfa9a7 /llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
parent5edb2f32d00d39f7d9fd98b90ff440b5dbbdcb45 (diff)
downloadbcm5719-llvm-ce0783318befe32b28198671c8d488e43b3c6e53.tar.gz
bcm5719-llvm-ce0783318befe32b28198671c8d488e43b3c6e53.zip
Correction to allow compilation with Visual C++.
Patch contributed by Morten Ofstad. Thanks Morten! llvm-svn: 17123
Diffstat (limited to 'llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
index 3311bd1c20b..213b3d742f4 100644
--- a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud