[PATCH] D65774: Removing redundant-move warnings generated by gcc9x.

Alexander Shaposhnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 5 21:29:19 PDT 2019


alexshap added inline comments.


================
Comment at: llvm/tools/llvm-objcopy/CopyConfig.cpp:573
                                              Arg->getValue()))
-      return std::move(E);
+      return E;
 
----------------
khm, wouldn't it break the builds using MSVC ?  https://gcc.godbolt.org/z/esJH6J


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65774/new/

https://reviews.llvm.org/D65774





More information about the llvm-commits mailing list