[cfe-commits] r41687 - /cfe/trunk/Sema/SemaStmt.cpp
Chris Lattner
sabre at nondot.org
Mon Sep 3 11:31:57 PDT 2007
Author: lattner
Date: Mon Sep 3 13:31:57 2007
New Revision: 41687
URL: http://llvm.org/viewvc/llvm-project?rev=41687&view=rev
Log:
Add a method required by the VC++ STL, patch by Hartmut Kaiser!
Modified:
cfe/trunk/Sema/SemaStmt.cpp
Modified: cfe/trunk/Sema/SemaStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaStmt.cpp?rev=41687&r1=41686&r2=41687&view=diff
==============================================================================
--- cfe/trunk/Sema/SemaStmt.cpp (original)
+++ cfe/trunk/Sema/SemaStmt.cpp Mon Sep 3 13:31:57 2007
@@ -246,6 +246,10 @@
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;
More information about the cfe-commits
mailing list