summaryrefslogtreecommitdiffstats
path: root/clang/Sema/SemaStmt.cpp
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
commit1463cca1cc7fadcac4dd391b8e2ecf9ba8877f77 (patch)
tree85b6e049cae7ea6e2feef819be605e2b3b78c42f /clang/Sema/SemaStmt.cpp
parenta263393d114311d69605cfd7f8d7b0b1e069bb04 (diff)
downloadbcm5719-llvm-1463cca1cc7fadcac4dd391b8e2ecf9ba8877f77.tar.gz
bcm5719-llvm-1463cca1cc7fadcac4dd391b8e2ecf9ba8877f77.zip
Add a method required by the VC++ STL, patch by Hartmut Kaiser!
llvm-svn: 41687
Diffstat (limited to 'clang/Sema/SemaStmt.cpp')
-rw-r--r--clang/Sema/SemaStmt.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/Sema/SemaStmt.cpp b/clang/Sema/SemaStmt.cpp
index d6c4c2d6d10..2924370df3a 100644
--- a/clang/Sema/SemaStmt.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud