trivial optimization

llvm-svn: 35648
This commit is contained in:
Chris Lattner 2007-04-04 06:18:21 +00:00
parent cc3e39562f
commit 5d12d66728

@ -278,7 +278,7 @@ public:
/// This converts the APInt to a boolean value as a test against zero.
/// @brief Boolean conversion function.
inline bool getBoolValue() const {
return countLeadingZeros() != BitWidth;
return *this != 0;
}
/// @}