[llvm-commits] CVS: llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
Reid Spencer
reid at x10sys.com
Mon Oct 18 07:39:35 PDT 2004
Changes in directory llvm/lib/Transforms/Utils:
PromoteMemoryToRegister.cpp updated: 1.73 -> 1.74
---
Log message:
Correction to allow compilation with Visual C++.
Patch contributed by Morten Ofstad. Thanks Morten!
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
diff -u llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:1.73 llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:1.74
--- llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:1.73 Sun Oct 17 20:21:17 2004
+++ llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp Mon Oct 18 09:38:48 2004
@@ -220,8 +220,8 @@
// (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.
More information about the llvm-commits
mailing list