[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
https://bugs.llvm.org/show_bug.cgi?id=44727
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
Using
-- 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
here
/build/llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:408:33:
warning: moving a local object in a return statement prevents copy elision
[-Wpessimizing-move]
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