llvm.org GIT mirror llvm / 80c8cbf
[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 Simon Pilgrim 1 year, 5 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
469469
470470 public:
471471 LocRange() {}
472 LocRange(DebugLoc Start) : Start(std::move(Start)), End(std::move(Start)) {}
472 LocRange(DebugLoc Start) : Start(Start), End(Start) {}
473473 LocRange(DebugLoc Start, DebugLoc End)
474474 : Start(std::move(Start)), End(std::move(End)) {}
475475