[llvm-bugs] [Bug 44921] New: [libunwind] Merge 221c5af4e into 10.0

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Feb 15 06:40:41 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=44921

            Bug ID: 44921
           Summary: [libunwind] Merge 221c5af4e into 10.0
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dimitry at andric.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Please merge
https://github.com/llvm/llvm-project/commit/221c5af4e4f4a504a4d1f352dd7b76d305e56a62
into the 10.x branch.  This fixes a new -Werror warning from clang 10.0.0 in
libunwind:

In file included from libunwind/src/libunwind.cpp:22:
libunwind/src/UnwindCursor.hpp:1455: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?
                                      ~~~~~~~~~~~ ^
libunwind/src/UnwindCursor.hpp:1455:51: note: place parentheses around the '|'
expression to silence this warning
  _info.flags = isSingleWordEHT ? 1 : 0 | scope32 ? 0x2 : 0;  // Use enum?
                                                  ^
                                      (          )
libunwind/src/UnwindCursor.hpp:1455:51: note: place parentheses around the '?:'
expression to evaluate it first
  _info.flags = isSingleWordEHT ? 1 : 0 | scope32 ? 0x2 : 0;  // Use enum?
                                                  ^
                                          (                )

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200215/46a75bbd/attachment.html>


More information about the llvm-bugs mailing list