[PATCH] D18756: [Coverage] Avoid unnecessary copying of an array. NFC.

Igor Kudrin via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 4 08:07:47 PDT 2016


ikudrin created this revision.
ikudrin added reviewers: bogner, davidxl.
ikudrin added a subscriber: llvm-commits.

http://reviews.llvm.org/D18756

Files:
  llvm/trunk/lib/ProfileData/CoverageMapping.cpp

Index: llvm/trunk/lib/ProfileData/CoverageMapping.cpp
===================================================================
--- llvm/trunk/lib/ProfileData/CoverageMapping.cpp
+++ llvm/trunk/lib/ProfileData/CoverageMapping.cpp
@@ -341,7 +341,7 @@
     // Pop any regions that are left in the stack.
     while (!ActiveRegions.empty())
       popRegion();
-    return Segments;
+    return std::move(Segments);
   }
 };
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18756.52558.patch
Type: text/x-patch
Size: 419 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160404/ea9533b2/attachment.bin>


More information about the llvm-commits mailing list