[llvm-bugs] [Bug 44727] New: ExecutionEngine/Orc: pessimization warnings

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 31 02:38:36 PST 2020


            Bug ID: 44727
           Summary: ExecutionEngine/Orc: pessimization warnings
           Product: libraries
           Version: 10.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Core LLVM classes
          Assignee: unassignedbugs at nondot.org
          Reporter: ggreif at gmail.com
                CC: llvm-bugs at lists.llvm.org


-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0

I see many (20+) warnings like this:

/build/llvm/lib/ExecutionEngine/Orc/OrcCBindingsStack.h:345:72:   required from
warning: moving a local object in a return statement prevents copy elision
  408 |             return std::move(Err);
      |                                 ^

The fix should be easy. If `clang` doesn't like this, then either GCC or Clang
have a bug.

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/20200131/96537242/attachment.html>

More information about the llvm-bugs mailing list