[PATCH] D71531: [NFC] Removing pessimizing move from Support/TaskQueue.h

Nate Voorhies via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 15 12:28:30 PST 2019


ncv created this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
ncv added a reviewer: zturner.

No functional change, but allows copy elision to take place.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71531

Files:
  llvm/include/llvm/Support/TaskQueue.h


Index: llvm/include/llvm/Support/TaskQueue.h
===================================================================
--- llvm/include/llvm/Support/TaskQueue.h
+++ llvm/include/llvm/Support/TaskQueue.h
@@ -98,7 +98,7 @@
         IsTaskInFlight = true;
       }
     }
-    return std::move(F);
+    return F;
   }
 
 private:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71531.233982.patch
Type: text/x-patch
Size: 321 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191215/89408ca0/attachment.bin>


More information about the llvm-commits mailing list