diff options
| author | Rumeet Dhindsa <rdhindsa@google.com> | 2019-09-24 02:59:02 +0000 |
|---|---|---|
| committer | Rumeet Dhindsa <rdhindsa@google.com> | 2019-09-24 02:59:02 +0000 |
| commit | 1605eb1c1cfc93733476af3d303e837724faac54 (patch) | |
| tree | 42b6546a592483191590aefa40bdca425439c97f /compiler-rt/lib/builtins/fp_lib.h | |
| parent | c7541903d72765a38808e9973572a8d50c9d94fb (diff) | |
| download | bcm5719-llvm-1605eb1c1cfc93733476af3d303e837724faac54.tar.gz bcm5719-llvm-1605eb1c1cfc93733476af3d303e837724faac54.zip | |
Fix int to bool errors exposed due to r372612.
Differential Revision: https://reviews.llvm.org/D67937
M lib/builtins/fp_add_impl.inc
M lib/builtins/fp_lib.h
M lib/builtins/fp_trunc_impl.inc
llvm-svn: 372684
Diffstat (limited to 'compiler-rt/lib/builtins/fp_lib.h')
| -rw-r--r-- | compiler-rt/lib/builtins/fp_lib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/builtins/fp_lib.h b/compiler-rt/lib/builtins/fp_lib.h index d1a988ea471..e2a906681c4 100644 --- a/compiler-rt/lib/builtins/fp_lib.h +++ b/compiler-rt/lib/builtins/fp_lib.h @@ -245,7 +245,7 @@ static __inline void wideLeftShift(rep_t *hi, rep_t *lo, int count) { static __inline void wideRightShiftWithSticky(rep_t *hi, rep_t *lo, unsigned int count) { if (count < typeWidth) { - const bool sticky = *lo << (typeWidth - count); + const bool sticky = (*lo << (typeWidth - count)) != 0; *lo = *hi << (typeWidth - count) | *lo >> count | sticky; *hi = *hi >> count; } else if (count < 2 * typeWidth) { |

