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

llvm-svn: 122362
This commit is contained in:
Benjamin Kramer 2010-12-21 21:30:19 +00:00
parent e9fc8dc84c
commit 43493c089f
1 changed files with 3 additions and 13 deletions

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; };
}