mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
trivial optimization
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35648 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
771b675c51
commit
6401260af2
@ -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