diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2006-01-26 20:41:32 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2006-01-26 20:41:32 +0000 |
commit | 15a8c15a1ff03b88ad93b9015b2a86dd10f035b8 (patch) | |
tree | cfc11981b65d0a29fb28f3048519adabefe5f3fb /llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp | |
parent | 32fef53f5cf5b5c9734f5472e5e53a6a8ffbcea3 (diff) | |
download | bcm5719-llvm-15a8c15a1ff03b88ad93b9015b2a86dd10f035b8.tar.gz bcm5719-llvm-15a8c15a1ff03b88ad93b9015b2a86dd10f035b8.zip |
Improve compatibility with VC2005, patch by Morten Ofstad!
llvm-svn: 25661
Diffstat (limited to 'llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp b/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp index d00614b5d3d..3da7e6e2df5 100644 --- a/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp +++ b/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp @@ -135,7 +135,8 @@ namespace { 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 @@ namespace { 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; |