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