[APInt] Implement operator! using operator==(uint64_t). NFCI

llvm-svn: 299293
This commit is contained in:
Craig Topper 2017-04-01 06:50:00 +00:00
parent 9ab8d7f9c3
commit 473a80ffcb
1 changed files with 1 additions and 7 deletions

View File

@ -627,13 +627,7 @@ public:
///
/// \returns true if *this is zero, false otherwise.
bool operator!() const {
if (isSingleWord())
return !VAL;
for (unsigned i = 0; i != getNumWords(); ++i)
if (pVal[i])
return false;
return true;
return *this == 0;
}
/// @}