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); } }; }