diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index 85cc8d1a985..0d2822699d9 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -127,16 +127,9 @@ namespace { return false; else if (function != other.function) return false; - else { - if (varargs.size() != other.varargs.size()) - return false; - - for (size_t i = 0; i < varargs.size(); ++i) - if (varargs[i] != other.varargs[i]) - return false; - - return true; - } + else if (varargs != other.varargs) + return false; + return true; } /*bool operator!=(const Expression &other) const { @@ -214,9 +207,6 @@ template <> struct DenseMapInfo { return LHS == RHS; } }; - -template <> -struct isPodLike { static const bool value = true; }; }