[llvm-commits] [llvm] r157126 - /llvm/trunk/include/llvm/ADT/ValueMap.h
Benjamin Kramer
benny.kra at googlemail.com
Sat May 19 12:32:11 PDT 2012
Author: d0k
Date: Sat May 19 14:32:11 2012
New Revision: 157126
URL: http://llvm.org/viewvc/llvm-project?rev=157126&view=rev
Log:
Disambiguate call to operator==.
clang++ and msvc happily had no problem with it but g++ refuses to compile.
Modified:
llvm/trunk/include/llvm/ADT/ValueMap.h
Modified: llvm/trunk/include/llvm/ADT/ValueMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ValueMap.h?rev=157126&r1=157125&r2=157126&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ValueMap.h (original)
+++ llvm/trunk/include/llvm/ADT/ValueMap.h Sat May 19 14:32:11 2012
@@ -269,7 +269,7 @@
return LHS == RHS;
}
static bool isEqual(const KeyT &LHS, const VH &RHS) {
- return LHS == RHS;
+ return LHS == RHS.getValPtr();
}
};
More information about the llvm-commits
mailing list