From: Simon Pilgrim Date: Mon, 6 May 2019 10:04:23 +0000 (+0000) Subject: [Analysis] Remove duplicated std::move from LocRange constructor X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80c8cbf2665961870e776498d53035d52fd1985d;p=llvm [Analysis] Remove duplicated std::move from LocRange constructor scan-build was reporting that we were referencing a moved variable - in fact we were moving it twice..... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360025 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h index f62f2004e10..adb497abe32 100644 --- a/include/llvm/Analysis/LoopInfo.h +++ b/include/llvm/Analysis/LoopInfo.h @@ -470,7 +470,7 @@ public: public: LocRange() {} - LocRange(DebugLoc Start) : Start(std::move(Start)), End(std::move(Start)) {} + LocRange(DebugLoc Start) : Start(Start), End(Start) {} LocRange(DebugLoc Start, DebugLoc End) : Start(std::move(Start)), End(std::move(End)) {}