Details
- Reviewers
- None
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/include/llvm/DWARFLinker/DWARFLinkerCompileUnit.h | ||
|---|---|---|
| 38 | std::move is redundant here, the expression is already xvalue. | |
| llvm/include/llvm/CodeGen/DIE.h | ||
|---|---|---|
| 466 | It is no more efficient than the copy constructor. | |
| llvm/include/llvm/CodeGen/DIE.h | ||
|---|---|---|
| 466 | Because I think DIEValue could maintain dynamic memory, copy constructor here need to first construct a temporary one and assign to this then destruct it self, couldn't move here be more efficient? | |
| llvm/include/llvm/DWARFLinker/DWARFLinkerCompileUnit.h | ||
|---|---|---|
| 38 | Oh, sorry, my mistake, so you are right, we don't need move construct | |
It is no more efficient than the copy constructor.
Why do you need it?