freebsd-dev/contrib/llvm-project
Dimitry Andric 473b61d31e Merge commit 221c5af4e from llvm git (by Nico Weber):
Fix a -Wbitwise-conditional-parentheses warning in
  _LIBUNWIND_ARM_EHABI libunwind builds

  ```
  src/UnwindCursor.hpp:1344:51: error: operator '?:' has lower precedence than '|'; '|' will be evaluated first [-Werror,-Wbitwise-conditional-parentheses]
    _info.flags = isSingleWordEHT ? 1 : 0 | scope32 ? 0x2 : 0;  // Use enum?
					~~~~~~~~~~~ ^
  src/UnwindCursor.hpp:1344:51: note: place parentheses around the '|' expression to silence this warning
    _info.flags = isSingleWordEHT ? 1 : 0 | scope32 ? 0x2 : 0;  // Use enum?
						    ^
					(          )
  src/UnwindCursor.hpp:1344:51: note: place parentheses around the '?:' expression to evaluate it first
    _info.flags = isSingleWordEHT ? 1 : 0 | scope32 ? 0x2 : 0;  // Use enum?
						    ^
					    (                )
  ```

  But `0 |` is a no-op for either of those two interpretations, so I
  think what was meant here was

  ```
    _info.flags = (isSingleWordEHT ? 1 : 0) | (scope32 ? 0x2 : 0);  // Use enum?
  ```

  Previously, if `isSingleWordEHT` was set, bit 2 would never be set.
  Now it is. From what I can tell, the only thing that checks these
  bitmask is ProcessDescriptors in Unwind-EHABI.cpp, and that only
  cares about bit 1, so in practice this shouldn't have much of an
  effect.

  Differential Revision: https://reviews.llvm.org/D73890

This fixes the above errors when building libunwind for arm variants.
2020-02-15 15:03:26 +00:00
..
clang Merge ^/vendor/llvm-project/release-10.x up to its last change (upstream 2020-02-15 14:58:40 +00:00
compiler-rt Merge ^/vendor/llvm-project/release-10.x up to its last change (upstream 2020-02-15 14:58:40 +00:00
libcxx Merge ^/vendor/llvm-project/release-10.x up to its last change (upstream 2020-02-15 14:58:40 +00:00
libunwind Merge commit 221c5af4e from llvm git (by Nico Weber): 2020-02-15 15:03:26 +00:00
lld Merge ^/vendor/llvm-project/release-10.x up to its last change (upstream 2020-02-15 14:58:40 +00:00
lldb Merge ^/vendor/llvm-project/release-10.x up to its last change (upstream 2020-02-15 14:58:40 +00:00
llvm Merge ^/vendor/llvm-project/release-10.x up to its last change (upstream 2020-02-15 14:58:40 +00:00
openmp Merge ^/vendor/lvm-project/master up to its last change (upstream commit 2020-01-24 22:00:03 +00:00
FREEBSD-Xlist Update FREEBSD-Xlist. 2020-01-25 14:39:59 +00:00