Fix -Wpessimizing-move warnings by removing std::move calls.
[oota-llvm.git] / lib / Analysis / LoopInfo.cpp
index 6462b0670ffec1adb6fd8ce858018bbe1e778019..b3a33326c00a7c18d466f5ce1442b9f422f7d6ae 100644 (file)
@@ -680,7 +680,7 @@ LoopInfo LoopAnalysis::run(Function &F, AnalysisManager<Function> *AM) {
   // the problem is better understood.
   LoopInfo LI;
   LI.Analyze(AM->getResult<DominatorTreeAnalysis>(F));
-  return std::move(LI);
+  return LI;
 }
 
 PreservedAnalyses LoopPrinterPass::run(Function &F,