diff --git a/include/llvm/ADT/ValueMap.h b/include/llvm/ADT/ValueMap.h index 121abc2b65f..f7e255181e2 100644 --- a/include/llvm/ADT/ValueMap.h +++ b/include/llvm/ADT/ValueMap.h @@ -269,7 +269,7 @@ struct DenseMapInfo > { return LHS == RHS; } static bool isEqual(const KeyT &LHS, const VH &RHS) { - return LHS == RHS; + return LHS == RHS.getValPtr(); } };