mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-19 11:41:53 +00:00
trivial optimization
llvm-svn: 35648
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
/// @}
|
||||
|
Loading…
x
Reference in New Issue
Block a user