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

            Bug ID: 42546
           Summary: wasm/OutputSections.cpp is causing warning on GCC
           Product: lld
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: wasm
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

After

commit e7eb8f099298b4c79397a1a287910628c82cc319
Author: Thomas Lively <[email protected]>
Date:   Wed Jul 3 22:04:54 2019 +0000

    [WebAssembly] Add option to emit passive segments

We have new warning reported by GCC (I tested at least gcc 5.5.0):

lld/wasm/OutputSections.cpp: In member function ‘virtual void
lld::wasm::DataSection::finalizeContents()’:
lld/wasm/OutputSections.cpp:136:31: error: suggest parentheses around ‘&&’
within ‘||’ [-Werror=parentheses]
          Segments.size() <= 1 &&
                               ^

The fix should be trivial.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to