commit | 061e7017039f963caff79bff51c0fb43a88bebdd | [log] [tgz] |
---|---|---|
author | Reid Kleckner <rnk@google.com> | Wed Oct 11 01:40:38 2017 +0000 |
committer | Reid Kleckner <rnk@google.com> | Wed Oct 11 01:40:38 2017 +0000 |
tree | 567e13c21f13609d1495a75c145b4f1afa26e1df | |
parent | a6676439bfc194d6fa85e669027aaf96bce67ff8 [diff] |
Silence MSVC warnings about unsigned wrapping without UB Of course, casting an unsigned value too large for 'int' is UB. So, write out the ternary. LLVM folds it to ADD anyway. Fixes the warning from r303693 a different way. Thanks to Erich Keane for pointing this out! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315406 91177308-0d34-0410-b5e6-96231b3b80d8