From 6eef6fc8593a2d3909c168b0fcd9027b40c5c6f8 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 2 Nov 2015 05:24:28 +0000 Subject: [PATCH] Fix a -Wpessimizing-move warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251773 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ProfileData/InstrProf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ProfileData/InstrProf.h b/include/llvm/ProfileData/InstrProf.h index cc2e25262a0..2be174d573d 100644 --- a/include/llvm/ProfileData/InstrProf.h +++ b/include/llvm/ProfileData/InstrProf.h @@ -308,7 +308,7 @@ std::unique_ptr InstrProfRecord::getValueForSite( } assert(I == N); - return std::move(VD); + return VD; } void InstrProfRecord::addValueData(uint32_t ValueKind, uint32_t Site, -- 2.34.1