[llvm] r279210 - [LTO] Add a move to inialize member in ctor initialization list (NFC)

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 18 22:56:37 PDT 2016


Author: mehdi_amini
Date: Fri Aug 19 00:56:37 2016
New Revision: 279210

URL: http://llvm.org/viewvc/llvm-project?rev=279210&view=rev
Log:
[LTO] Add a move to inialize member in ctor initialization list (NFC)

Modified:
    llvm/trunk/lib/LTO/LTO.cpp

Modified: llvm/trunk/lib/LTO/LTO.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/LTO.cpp?rev=279210&r1=279209&r2=279210&view=diff
==============================================================================
--- llvm/trunk/lib/LTO/LTO.cpp (original)
+++ llvm/trunk/lib/LTO/LTO.cpp Fri Aug 19 00:56:37 2016
@@ -179,7 +179,7 @@ LTO::LTO(Config Conf, ThinBackend Backen
          unsigned ParallelCodeGenParallelismLevel)
     : Conf(std::move(Conf)),
       RegularLTO(ParallelCodeGenParallelismLevel, this->Conf),
-      ThinLTO(Backend) {}
+      ThinLTO(std::move(Backend)) {}
 
 // Add the given symbol to the GlobalResolutions map, and resolve its partition.
 void LTO::addSymbolToGlobalRes(IRObjectFile *Obj,




More information about the llvm-commits mailing list