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: unassignedb...@nondot.org
          Reporter: dimi...@andric.com
                CC: htmldevelo...@gmail.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to