GVN's Expression is not POD-like (it contains a SmallVector). Simplify code while at it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122362 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2010-12-21 21:30:19 +00:00
parent d0cf2585a0
commit aad94aa437

View File

@ -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<Expression> {
return LHS == RHS;
}
};
template <>
struct isPodLike<Expression> { static const bool value = true; };
}