aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-09-03 18:31:57 +0000
committerChris Lattner <sabre@nondot.org>2007-09-03 18:31:57 +0000
commit0e85a2761ace912c66663d779dd230f88cf77fe0 (patch)
tree0e7e31174db0962f93e939d54c5c349909cad0ac
parent77034d39bb0fe0fda77540a414cc0b66bcf799ab (diff)
Add a method required by the VC++ STL, patch by Hartmut Kaiser!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41687 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Sema/SemaStmt.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Sema/SemaStmt.cpp b/Sema/SemaStmt.cpp
index d6c4c2d6d1..2924370df3 100644
--- a/Sema/SemaStmt.cpp
+++ b/Sema/SemaStmt.cpp
@@ -246,6 +246,10 @@ namespace {
const llvm::APSInt &RHS) {
return LHS.first < RHS;
}
+ bool operator()(const std::pair<llvm::APSInt, CaseStmt*> &LHS,
+ const std::pair<llvm::APSInt, CaseStmt*> &RHS) {
+ return LHS.first < RHS.first;
+ }
bool operator()(const llvm::APSInt &LHS,
const std::pair<llvm::APSInt, CaseStmt*> &RHS) {
return LHS < RHS.first;