[llvm-commits] CVS: llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp
Jeff Cohen
jeffc at jolt-lang.org
Thu Jan 26 12:41:47 PST 2006
Changes in directory llvm/lib/Transforms/Scalar:
CorrelatedExprs.cpp updated: 1.31 -> 1.32
---
Log message:
Improve compatibility with VC2005, patch by Morten Ofstad!
---
Diffs of the changes: (+4 -2)
CorrelatedExprs.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Index: llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp
diff -u llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp:1.31 llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp:1.32
--- llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp:1.31 Sun Jan 22 17:32:06 2006
+++ llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp Thu Jan 26 14:41:32 2006
@@ -135,7 +135,8 @@
Relation &getRelation(Value *V) {
// Binary search for V's entry...
std::vector<Relation>::iterator I =
- std::lower_bound(Relationships.begin(), Relationships.end(), V);
+ std::lower_bound(Relationships.begin(), Relationships.end(),
+ Relation(V));
// If we found the entry, return it...
if (I != Relationships.end() && I->getValue() == V)
@@ -148,7 +149,8 @@
const Relation *requestRelation(Value *V) const {
// Binary search for V's entry...
std::vector<Relation>::const_iterator I =
- std::lower_bound(Relationships.begin(), Relationships.end(), V);
+ std::lower_bound(Relationships.begin(), Relationships.end(),
+ Relation(V));
if (I != Relationships.end() && I->getValue() == V)
return &*I;
return 0;
More information about the llvm-commits
mailing list